From 93e37ee633e86a3af3e7a583ccbcab0c4e5cfce3 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 29 Oct 2017 08:47:05 +0000 Subject: Fix backup download for Firefox. --- pages/options.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/options.coffee b/pages/options.coffee index 45d8942e..a6916d43 100644 --- a/pages/options.coffee +++ b/pages/options.coffee @@ -344,8 +344,12 @@ DomUtils?.documentReady -> url = bgWin.URL.createObjectURL blob a = $ "backupLink" a.href = url - a.style.display = "" - a.click() unless Utils.isFirefox() + if Utils.isFirefox() + # On Firefox, the user has to click the link manually. + a.style.display = "" + a.textContent = "Click to download backup" + else + a.click() $("chooseFile").addEventListener "change", (event) -> document.activeElement?.blur() -- cgit v1.2.3