Skip to content

In "Preferences" page, the "Clear Rules" button of blacklist doesn't work #102

Description

@alfred-zhong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions