aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2017-12-02 08:08:46 +0000
committerStephen Blott2017-12-02 08:08:52 +0000
commite32aaa80600140d2ee918549925ddd06ddb5f930 (patch)
treed8e90e9dc7cbef9c35ecd15e8ef42fcbe410a991 /pages
parent971d067f99ddc09b9ca388c2cffeadd32302c35a (diff)
downloadvimium-e32aaa80600140d2ee918549925ddd06ddb5f930.tar.bz2
Do not initialise backup/restore on the popup page.
This was generating a (harmless) error on the popup page.
Diffstat (limited to 'pages')
-rw-r--r--pages/options.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/options.coffee b/pages/options.coffee
index 86b6122d..0d4f5999 100644
--- a/pages/options.coffee
+++ b/pages/options.coffee
@@ -333,6 +333,9 @@ document.addEventListener "DOMContentLoaded", ->
#
# Backup and restore. "?" is for the tests."
DomUtils?.documentReady ->
+ # Only initialize backup/restore on the options page (not the popup).
+ return unless location.pathname == "/pages/options.html"
+
restoreSettingsVersion = null
populateBackupLinkUrl = ->