From e32aaa80600140d2ee918549925ddd06ddb5f930 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 2 Dec 2017 08:08:46 +0000 Subject: Do not initialise backup/restore on the popup page. This was generating a (harmless) error on the popup page. --- pages/options.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pages') 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 = -> -- cgit v1.2.3