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
Next

Sync antitracking networkFetchEnabled setting with enable_autoupdate.

  • Loading branch information
sammacbeth committed Dec 17, 2020
commit 6886cec32cd0d70cfc2736410b224022bf1361cd
@@ -1104,6 +1104,11 @@ function initializeDispatcher() {
setCliqzModuleEnabled(humanweb, false);
}
});
dispatcher.on('conf.save.enable_autoupdate', (enableAutoUpdate) => {
if (!antitracking.isDisabled) {
antitracking.action('setConfigOption', 'networkFetchEnabled', !!conf.enable_autoupdate);
}
});
dispatcher.on('conf.save.enable_anti_tracking', (enableAntitracking) => {
if (!IS_CLIQZ) {
setCliqzModuleEnabled(antitracking, enableAntitracking).then(() => {
@@ -1546,6 +1551,10 @@ function initializeGhosteryModules() {
conf.enable_anti_tracking = !antitracking.isDisabled;
conf.enable_human_web = !humanweb.isDisabled;

if (!antitracking.isDisabled) {
antitracking.action('setConfigOption', 'networkFetchEnabled', !!conf.enable_autoupdate);
}

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