diff --git a/lib/main.js b/lib/main.js index fc3a46b..582fcb9 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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"); }()); \ No newline at end of file