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:
parent
3d535c6c69
commit
872a478f91
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue