summaryrefslogtreecommitdiff
path: root/popup/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'popup/popup.js')
-rw-r--r--popup/popup.js9
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}`;
+ }
})();