From 31b725dfc621feb3afc88adb45e969b5f62be912 Mon Sep 17 00:00:00 2001 From: vuk Date: Sun, 22 Sep 2024 14:03:01 +0200 Subject: [PATCH] milje.js now outputs the version number from the manifest file(testing something out) --- manifest.json | 8 ++++++-- scripts/milje.js | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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 = {