1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-28 11:00:38 +12:00

Preferences button for Safari

Brings back the possibility to click a checkbox which opens the extension
settings from Safari's Preferences/Extensions.
This commit is contained in:
Deathamns 2014-11-05 17:01:18 +01:00 committed by gorhill
parent 3d535c6c69
commit 872a478f91

View file

@ -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 = {
_storage: safari.extension.settings,