milje.js now outputs the version number from the manifest file(testing something out)

This commit is contained in:
vuk 2024-09-22 14:03:01 +02:00
parent a009f6425c
commit 31b725dfc6
2 changed files with 10 additions and 3 deletions

View File

@ -15,9 +15,13 @@
}, },
"content_scripts": [ "content_scripts": [
{ {
"matches": ["<all_urls>", "file:///"], "matches": ["<all_urls>", "file:///"],
"js": ["scripts/milje.js"] "js": ["scripts/milje.js"]
} }
] ],
"browser_specific_settings": {
"gecko": {
"id": ""
}
}
} }

View File

@ -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 milje = document.createElement('div');
const style = { const style = {