As I said in the title.
I added several rules in the blacklist and clicked the button. After seconds the plugin restarted and I open the "Preferences" page again. The rules is still there.
Here are the code:
function clearRules() {
chrome.storage.local.get(['blacklist'], function(items) {
var blacklist = items['blacklist'];
blacklist['SITE'] = ['chrome-ui://newtab']
chrome.storage.local.set({'blacklist':blacklist});
});
notie.alert(1, 'Deleted Rules. Restarting WorldBrain...', 2)
setTimeout(function() {
chrome.runtime.reload()
}, 2000);
}
I thought it doesn't work. Right?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
As I said in the title.
I added several rules in the blacklist and clicked the button. After seconds the plugin restarted and I open the "Preferences" page again. The rules is still there.
Here are the code:
I thought it doesn't work. Right?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.