Add always_disabled feature

This commit is contained in:
2021-03-02 14:56:07 +01:00
parent 96b378695e
commit 0e48a34d71
4 changed files with 132 additions and 39 deletions
+3 -1
View File
@@ -49,12 +49,14 @@ function get_preference(key)
return promise;
}
function set_preference(key, value)
function set_preference(key, value, sendResponse)
{
pref = {[key]:value};
chrome.storage.local.set(pref, function (result) {
if (chrome.runtime.lastError)
alert(chrome.runtime.lastError);
if (sendResponse)
sendResponse(chrome.runtime.lastError);
});
}