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

Refactoring load/unload of Cliqz modules, fix for GH-476. #8

Merged
merged 4 commits into from Mar 19, 2018
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Removing old code.
  • Loading branch information
Serge Zarembsky
Serge Zarembsky committed Mar 19, 2018
commit 715aa62d241d681f91dfcf7f86e655a4af5a756c
@@ -1281,25 +1281,9 @@ function initializeGhosteryModules() {
if (globals.JUST_UPGRADED_FROM_7) {
conf.enable_ad_block = false;
conf.enable_anti_tracking = false;
setCliqzModuleEnabled(antitracking, conf.enable_anti_tracking)
.catch((err) => {
if (err !== true) {
log('ANTITRACKING ERROR:', err, conf.enable_anti_tracking);
}
});
setCliqzModuleEnabled(adblocker, conf.enable_ad_block)
.catch((err) => {
if (err !== true) {
log('ADBLOKER ERROR:', err, conf.enable_anti_tracking);
}
});

setCliqzModuleEnabled(humanweb, IS_EDGE ? false : conf.enable_human_web)
.catch((err) => {
if (err !== true) {
log('HUMANWEB ERROR:', err, conf.enable_anti_tracking);
}
});
setCliqzModuleEnabled(antitracking, conf.enable_anti_tracking);
setCliqzModuleEnabled(adblocker, conf.enable_ad_block);
setCliqzModuleEnabled(humanweb, IS_EDGE ? false : conf.enable_human_web);
} else {
conf.enable_ad_block = !adblocker.isDisabled;
conf.enable_anti_tracking = !antitracking.isDisabled;
ProTip! Use n and p to navigate between commits in a pull request.