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

Removing Whitelist and Blacklist from sync (GH-1138) #98

Merged
merged 2 commits into from Jun 11, 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

@@ -740,6 +740,11 @@ function onMessageHandler(request, sender, callback) {
utils.getActiveTab((tab) => {
if (tab && tab.id && tab.url.startsWith('http')) {
const settings = accounts.buildUserSettings();
// Blacklisted and whitelisted sites are removed from sync array,
// but we want to allow export and import these properties manually
settings.site_blacklist = conf.site_blacklist;
settings.site_whitelist = conf.site_whitelist;

try {
const hash = common.hashCode(JSON.stringify({ conf: settings }));
const backup = JSON.stringify({ hash, settings: { conf: settings } });
@@ -35,9 +35,8 @@ const { IS_CLIQZ } = globals;
*/
class ConfData {
constructor() {
// paused_blocking, language and SYNC_SET do not get persisted
// language does not get persisted
this.language = this._getDefaultLanguage();
this.DONT_PERSIST_SET = new Set(globals.DONT_PERSIST_ARRAY);
this.SYNC_SET = new Set(globals.SYNC_ARRAY);
}

@@ -97,10 +97,8 @@ class Globals {
'show_badge',
'show_cmp',
'show_tracker_urls',
'site_blacklist',
'site_specific_blocks',
'site_specific_unblocks',
'site_whitelist',
'toggle_individual_trackers',
'trackers_banner_status',
];
ProTip! Use n and p to navigate between commits in a pull request.