diff --git a/src/html/options.js b/src/html/options.js
index 668905384..6330963f8 100644
--- a/src/html/options.js
+++ b/src/html/options.js
@@ -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() {