diff --git a/manifest.json b/manifest.json index b568a13..9a06541 100644 --- a/manifest.json +++ b/manifest.json @@ -15,9 +15,13 @@ }, "content_scripts": [ { - "matches": ["", "file:///"], "js": ["scripts/milje.js"] } - ] + ], + "browser_specific_settings": { + "gecko": { + "id": "" + } + } } diff --git a/scripts/milje.js b/scripts/milje.js index 1e88768..f3a30b9 100644 --- a/scripts/milje.js +++ b/scripts/milje.js @@ -1,4 +1,7 @@ -console.log("browser-milje version 0.0.1") +const manifestData = chrome.runtime.getManifest(); +const version = manifestData.version; + +console.log("browser-milje version " + version); const milje = document.createElement('div'); const style = {