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

Update browser button to reflect sitepolicy #564

Merged
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Next

Update browser button to reflect sitepolicy

  • Loading branch information
IAmThePan committed Jun 4, 2020
commit 0f2f2d110d62d28ee07b26d824f729b69f936632
@@ -1018,6 +1018,9 @@ function initializeDispatcher() {
utils.flushChromeMemoryCache();
cliqz.modules.core.action('refreshAppState');
});
dispatcher.on('conf.save.site_blacklist', () => {
button.update();
});
dispatcher.on('conf.save.enable_human_web', (enableHumanWeb) => {
if (!IS_CLIQZ) {
setCliqzModuleEnabled(humanweb, enableHumanWeb).then(() => {
@@ -151,7 +151,7 @@ class BrowserButton {
if (trackerCount === '') {
this._setIcon(false, tabId, trackerCount, alert);
} else {
this._setIcon(!globals.SESSION.paused_blocking && !this.policy.checkSiteWhitelist(tab.url), tabId, trackerCount, alert);
this._setIcon(!globals.SESSION.paused_blocking && this.policy.getSitePolicy(tab.url) !== globals.WHITELISTED, tabId, trackerCount, alert);
}
}

ProTip! Use n and p to navigate between commits in a pull request.