mirror of https://github.com/gorhill/uBlock.git
this fixes hyperlink auditing setting being r/o after launch of uBlock
This commit is contained in:
parent
c170167f96
commit
1784ffd411
|
@ -144,8 +144,10 @@ var onUserSettingsReady = function(fetched) {
|
|||
userSettings.experimentalEnabled = false;
|
||||
|
||||
µb.contextMenu.toggle(userSettings.contextMenuEnabled);
|
||||
vAPI.browserSettings.set({ 'prefetching': !userSettings.prefetchingDisabled });
|
||||
vAPI.browserSettings.set({ 'hyperlinkAuditing': !userSettings.hyperlinkAuditingDisabled });
|
||||
vAPI.browserSettings.set({
|
||||
'hyperlinkAuditing': !userSettings.hyperlinkAuditingDisabled,
|
||||
'prefetching': !userSettings.prefetchingDisabled
|
||||
});
|
||||
|
||||
µb.permanentFirewall.fromString(fetched.dynamicFilteringString);
|
||||
µb.sessionFirewall.assign(µb.permanentFirewall);
|
||||
|
|
|
@ -273,10 +273,11 @@ var matchWhitelistDirective = function(url, hostname, directive) {
|
|||
break;
|
||||
case 'experimentalEnabled':
|
||||
break;
|
||||
case 'hyperlinkAuditingDisabled':
|
||||
vAPI.browserSettings.set({ 'hyperlinkAuditing': !value });
|
||||
break;
|
||||
case 'prefetchingDisabled':
|
||||
vAPI.browserSettings.set({
|
||||
'prefetching': !value
|
||||
});
|
||||
vAPI.browserSettings.set({ 'prefetching': !value });
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue