mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Added storage version check.
This commit is contained in:
parent
7337ac093a
commit
47729f81bb
1 changed files with 11 additions and 0 deletions
11
lib/main.js
11
lib/main.js
|
@ -141,5 +141,16 @@
|
||||||
// processes.port.emit("canvasBlocker-unload");
|
// processes.port.emit("canvasBlocker-unload");
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
browser.runtime.onInstalled.addListener(function(){
|
||||||
|
log("CanvasBlocker installed");
|
||||||
|
browser.storage.local.get("storageVersion").then(function(data){
|
||||||
|
if (data.storageVersion !== 0.1){
|
||||||
|
browser.storage.local.set({
|
||||||
|
storageVersion: 0.1
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
log("end");
|
log("end");
|
||||||
}());
|
}());
|
Loading…
Add table
Add a link
Reference in a new issue