mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 12:36:37 +02:00
Added loading of the current settings in the frame script.
This commit is contained in:
parent
bec157391d
commit
3c47eaf97f
1 changed files with 7 additions and 0 deletions
|
@ -149,6 +149,13 @@
|
|||
}
|
||||
});
|
||||
|
||||
browser.storage.local.get().then(function(data){
|
||||
Object.keys(data).forEach(function(key){
|
||||
log("loaded setting:", key, ":", data[key]);
|
||||
settings[key] = data[key];
|
||||
});
|
||||
});
|
||||
|
||||
log("register listener for settings changes");
|
||||
browser.storage.onChanged.addListener(function(change, area){
|
||||
if (area === "local"){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue