Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Enable automatic updates" setting propagates to antitracking and adblocker #646

Merged
merged 7 commits into from Jan 6, 2021

Sync adblocker fetch enabled state with enable_autoupdate

  • Loading branch information
sammacbeth committed Dec 17, 2020
commit cc2e41b5f741e985cdb9497f2849bd046032731d
@@ -1109,6 +1109,9 @@ function initializeDispatcher() {
if (!antitracking.isDisabled) {
antitracking.action('setConfigOption', 'networkFetchEnabled', enableAutoUpdate);
}
if (!adblocker.isDisabled) {
adblocker.action('setNetworkFetchEnabled', enableAutoUpdate);
}
});
dispatcher.on('conf.save.enable_anti_tracking', (enableAntitracking) => {
if (!IS_CLIQZ) {
@@ -1555,6 +1558,9 @@ function initializeGhosteryModules() {
if (!antitracking.isDisabled) {
antitracking.action('setConfigOption', 'networkFetchEnabled', !!conf.enable_autoupdate);
}
if (!adblocker.isDisabled) {
adblocker.action('setNetworkFetchEnabled', !!conf.enable_autoupdate);
}

// Make sure that getBrowserInfo() has resolved before we set these properties
(async() => {
ProTip! Use n and p to navigate between commits in a pull request.