diff options
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/options.coffee | 8 |
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() |
