diff options
author | sameerasw <[email protected]> | 2025-02-26 20:22:22 +0530 |
---|---|---|
committer | sameerasw <[email protected]> | 2025-02-26 20:22:22 +0530 |
commit | e3b7b6b485dd94a4b9308d69944320069d69740e (patch) | |
tree | 26e6c9b5d480da9737a8f8d6337c2924b4f6c222 /popup/popup.js | |
parent | 946bb6d1134f1776040ca5f58c2d9534a29e3ea7 (diff) |
Added version to the pop up header
Diffstat (limited to 'popup/popup.js')
-rw-r--r-- | popup/popup.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/popup/popup.js b/popup/popup.js index aa0d556..86eda9c 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -23,6 +23,7 @@ new (class ExtensionPopup { }); this.setupContentScriptInjection(); + this.displayAddonVersion(); } async getCurrentTabInfo() { @@ -285,4 +286,12 @@ new (class ExtensionPopup { shouldApplyCSS(hostname) { return this.browserStorageSettings.enableStyling !== false; } + + async displayAddonVersion() { + const manifest = browser.runtime.getManifest(); + const version = manifest.version; + document.getElementById( + "addon-version" + ).textContent = `Version: ${version}`; + } })(); |