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;
µ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);

View File

@ -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;