this fixes hyperlink auditing setting being r/o after launch of uBlock

This commit is contained in:
gorhill 2015-06-02 09:27:18 -04:00
parent c170167f96
commit 1784ffd411
2 changed files with 8 additions and 5 deletions

View File

@ -144,8 +144,10 @@ var onUserSettingsReady = function(fetched) {
userSettings.experimentalEnabled = false; userSettings.experimentalEnabled = false;
µb.contextMenu.toggle(userSettings.contextMenuEnabled); µb.contextMenu.toggle(userSettings.contextMenuEnabled);
vAPI.browserSettings.set({ 'prefetching': !userSettings.prefetchingDisabled }); vAPI.browserSettings.set({
vAPI.browserSettings.set({ 'hyperlinkAuditing': !userSettings.hyperlinkAuditingDisabled }); 'hyperlinkAuditing': !userSettings.hyperlinkAuditingDisabled,
'prefetching': !userSettings.prefetchingDisabled
});
µb.permanentFirewall.fromString(fetched.dynamicFilteringString); µb.permanentFirewall.fromString(fetched.dynamicFilteringString);
µb.sessionFirewall.assign(µb.permanentFirewall); µb.sessionFirewall.assign(µb.permanentFirewall);

View File

@ -273,10 +273,11 @@ var matchWhitelistDirective = function(url, hostname, directive) {
break; break;
case 'experimentalEnabled': case 'experimentalEnabled':
break; break;
case 'hyperlinkAuditingDisabled':
vAPI.browserSettings.set({ 'hyperlinkAuditing': !value });
break;
case 'prefetchingDisabled': case 'prefetchingDisabled':
vAPI.browserSettings.set({ vAPI.browserSettings.set({ 'prefetching': !value });
'prefetching': !value
});
break; break;
default: default:
break; break;