mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
Added loading of the current settings in the frame script.
This commit is contained in:
parent
bec157391d
commit
3c47eaf97f
@ -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");
|
log("register listener for settings changes");
|
||||||
browser.storage.onChanged.addListener(function(change, area){
|
browser.storage.onChanged.addListener(function(change, area){
|
||||||
if (area === "local"){
|
if (area === "local"){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user