aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2017-10-29 08:47:05 +0000
committerStephen Blott2017-10-29 08:47:05 +0000
commit93e37ee633e86a3af3e7a583ccbcab0c4e5cfce3 (patch)
tree8f8f89ca736057e6df3dfd3fddabada3f4d44e51 /pages
parent992edf5a1c770380601b1c7428593c2ef873f181 (diff)
downloadvimium-93e37ee633e86a3af3e7a583ccbcab0c4e5cfce3.tar.bz2
Fix backup download for Firefox.
Diffstat (limited to 'pages')
-rw-r--r--pages/options.coffee8
1 files changed, 6 insertions, 2 deletions
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()