From 9981c252869f38f711373e91b1445e69469aaf61 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sun, 19 Oct 2014 15:11:39 +0200 Subject: [PATCH] Remove storage change-event listener from Safari Earlier, a technique was used to open the extension's Options page when the user clicked a checkbox input at Safari's extension settings. The method was removed because: - the Options page can be opened via the extension's toolbar button (which cannot be disabled in Safari, so it will be there all the time); - involved more clicks than opening from the toolbar button; - the string beside the checkbox couldn't be localized. --- src/js/vapi-background.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/js/vapi-background.js b/src/js/vapi-background.js index 110ff45..6580403 100644 --- a/src/js/vapi-background.js +++ b/src/js/vapi-background.js @@ -263,12 +263,6 @@ if (window.chrome) { } else if (window.safari) { vAPI.safari = true; - safari.extension.settings.addEventListener('change', function(e) { - if (e.key === 'open_prefs') { - vAPI.tabs.open({url: 'dashboard.html', active: true}); - } - }, false); - vAPI.storage = { _storage: safari.extension.settings, QUOTA_BYTES: 52428800, // copied from Info.plist