[bug] fix export data link not working on firefox

This commit is contained in:
zombieFox 2019-08-14 15:04:41 +01:00
parent 7fd909c057
commit e2f25a0c23
4 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "3.72.0",
"version": "3.72.1",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js",
"scripts": {

View File

@ -44,8 +44,11 @@ var data = (function() {
var link = document.createElement("a");
link.setAttribute("href", url);
link.setAttribute("download", fileName);
link.addEventListener("click", function(event) {
this.remove();
}, false);
helper.e("body").appendChild(link);
link.click();
link.remove();
};
mod.restore = function(data) {

View File

@ -1,7 +1,7 @@
var version = (function() {
var current = "3.72.0";
var current = "3.72.1";
var compare = function(a, b) {
var pa = a.split(".");

View File

@ -2,7 +2,7 @@
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "3.72.0",
"version": "3.72.1",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"