Skip to content

Commit e2f25a0

Browse files
committed
[bug] fix export data link not working on firefox
1 parent 7fd909c commit e2f25a0

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nighttab",
3-
"version": "3.72.0",
3+
"version": "3.72.1",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/js/data.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ var data = (function(){
4444
varlink=document.createElement("a");
4545
link.setAttribute("href",url);
4646
link.setAttribute("download",fileName);
47+
link.addEventListener("click",function(event){
48+
this.remove();
49+
},false);
50+
helper.e("body").appendChild(link);
4751
link.click();
48-
link.remove();
4952
};
5053

5154
mod.restore=function(data){

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
varversion=(function(){
33

4-
varcurrent="3.72.0";
4+
varcurrent="3.72.1";
55

66
varcompare=function(a,b){
77
varpa=a.split(".");

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "3.72.0",
5+
"version": "3.72.1",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)