mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Fixed bug that the update of the lists sometimes did not use the new value but the old one.
This commit is contained in:
parent
2b1a32e078
commit
26c5968b64
2 changed files with 18 additions and 14 deletions
|
@ -16,7 +16,7 @@ function require(module){
|
|||
browser.storage.onChanged.addListener(function(changes, area){
|
||||
if (area === "local"){
|
||||
if (changes.hasOwnProperty(key)){
|
||||
callback();
|
||||
callback(changes[key].newValue);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -37,4 +37,6 @@ function require(module){
|
|||
}
|
||||
console.error("Not able to get non relative modules!", module);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
window.scope.require = require;
|
Loading…
Add table
Add a link
Reference in a new issue