From 59c702cbf54186f3844d417a6938f79a0b0e536c Mon Sep 17 00:00:00 2001 From: supernova <76390419+driedpampas@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:30:54 +0300 Subject: [PATCH] fix: version number not showing up in firefox builds (#1131) --- src/html/options.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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() {