Skip to content

Commit

Permalink
fix: version number not showing up in firefox builds (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
driedpampas authored Sep 28, 2023
1 parent d79b636 commit 59c702c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/html/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ function addNumberInputs() {
}

function displayExtensionVersion() {
brws.storage.local
.get('version')
.then(
(data) =>
(document.getElementById('version').textContent = data.version + '-Mv3')
);
const versionElement = document.getElementById('version');
if (versionElement) {
const extensionVersion = brws.runtime.getManifest().version + '-Mv3';
versionElement.textContent = extensionVersion;
}
}

function formatWhitelistDesc() {
Expand Down

0 comments on commit 59c702c

Please sign in to comment.