Browse Source

Preferences button for Safari

Brings back the possibility to click a checkbox which opens the extension
settings from Safari's Preferences/Extensions.
pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
872a478f91
  1. 6
      src/js/vapi-background.js

6
src/js/vapi-background.js

@ -287,6 +287,12 @@ if (self.chrome) {
] ]
); );
safari.extension.settings.addEventListener('change', function(e) {
if (e.key === 'open_prefs') {
vAPI.tabs.open({url: 'dashboard.html', active: true});
}
}, false);
vAPI.storage = { vAPI.storage = {
_storage: safari.extension.settings, _storage: safari.extension.settings,

Loading…
Cancel
Save