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

Disable purple box and send Cliqz Data for AndroidPanel #105

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

Always

Just for now

Disable purple box and send Cliqz Data for AndroidPanel
  • Loading branch information
luciancor committed Jun 15, 2018
commit c2a18ce7959ced53083af72b7fdf7c4b110b17cc
@@ -613,16 +613,18 @@ function onMessageHandler(request, sender, callback) {
} else if (name === 'getAndroidPanelData') {
utils.getActiveTab((tab) => {
// we are pushing all the possible data for now
// TODO: Looks like only summary and settings is enough. We should remove blocking and panel after confirming with ghosterians
chrome.runtime.sendMessage({
target: 'ANDROID_BROWSER',
action: 'panelData',
payload: {
panel: panelData.get('panel', tab),
summary: panelData.get('summary', tab),
blocking: panelData.get('blocking', tab),
settings: panelData.get('settings')
}
onMessageHandler({ name: 'getCliqzModuleData' }, {}, (cliqz) => {
chrome.runtime.sendMessage({
target: 'ANDROID_BROWSER',
action: 'panelData',
payload: {
panel: panelData.get('panel', tab),
summary: panelData.get('summary', tab),
blocking: panelData.get('blocking', tab),
settings: panelData.get('settings'),
cliqz
}
});
});
});
} else if (name === 'getCliqzModuleData') {
@@ -107,7 +107,7 @@ class ConfData {
_initProperty('notify_upgrade_updates', true);
_initProperty('settings_last_imported', 0);
_initProperty('settings_last_exported', 0);
_initProperty('show_alert', true);
_initProperty('show_alert', false);
_initProperty('show_badge', true);
_initProperty('show_cmp', true);
_initProperty('show_tracker_urls', true);
ProTip! Use n and p to navigate between commits in a pull request.