From ab865d14c2a0cb6402753b4c7fb5ced80d53747e Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 30 Dec 2019 15:37:48 +0100 Subject: Fixed settings export button broken on Vivaldi (issue #124). --- src/ui/options.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/options.js b/src/ui/options.js index 75f1280..1342af0 100644 --- a/src/ui/options.js +++ b/src/ui/options.js @@ -71,7 +71,11 @@ let button = e.target; button.disabled = true; let settings = await UI.exportSettings(); - let f = document.createElement("iframe"); + let id = "noscriptExportFrame"; + let f = document.getElementById(id); + if (f) f.remove(); + f = document.createElement("iframe"); + f.id = id; f.srcdoc = `NoScript Export`; f.style.position = "fixed"; f.style.top = "-999px"; @@ -84,7 +88,6 @@ })); a.click(); setTimeout(() => { - f.remove(); button.disabled = false; }, 1000); -- cgit v1.2.3