Added storage version check.

This commit is contained in:
kkapsner 2017-07-16 00:12:12 +02:00
parent 7337ac093a
commit 47729f81bb
1 changed files with 11 additions and 0 deletions

View File

@ -140,6 +140,17 @@
// unload(function(){
// 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");
}());