Add always_disabled feature
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user