aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/generic-page-main.js6
-rw-r--r--ext/bg/js/permissions-main.js2
-rw-r--r--ext/bg/js/settings2/settings-main.js2
-rw-r--r--ext/bg/js/welcome-main.js2
4 files changed, 12 insertions, 0 deletions
diff --git a/ext/bg/js/generic-page-main.js b/ext/bg/js/generic-page-main.js
index 9102fec3..8e1b3c76 100644
--- a/ext/bg/js/generic-page-main.js
+++ b/ext/bg/js/generic-page-main.js
@@ -15,7 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+function setupEnvironmentInfo() {
+ const {manifest_version: manifestVersion} = chrome.runtime.getManifest();
+ document.documentElement.dataset.manifestVersion = `${manifestVersion}`;
+}
+
(() => {
document.querySelector('#content-scroll-focus').focus();
document.documentElement.dataset.loaded = 'true';
+ setupEnvironmentInfo();
})();
diff --git a/ext/bg/js/permissions-main.js b/ext/bg/js/permissions-main.js
index 3e46c3f2..a464f40e 100644
--- a/ext/bg/js/permissions-main.js
+++ b/ext/bg/js/permissions-main.js
@@ -20,9 +20,11 @@
*/
async function setupEnvironmentInfo() {
+ const {manifest_version: manifestVersion} = chrome.runtime.getManifest();
const {browser, platform} = await api.getEnvironmentInfo();
document.documentElement.dataset.browser = browser;
document.documentElement.dataset.os = platform.os;
+ document.documentElement.dataset.manifestVersion = `${manifestVersion}`;
}
async function isAllowedIncognitoAccess() {
diff --git a/ext/bg/js/settings2/settings-main.js b/ext/bg/js/settings2/settings-main.js
index f86764bc..6e6186e5 100644
--- a/ext/bg/js/settings2/settings-main.js
+++ b/ext/bg/js/settings2/settings-main.js
@@ -39,9 +39,11 @@
*/
async function setupEnvironmentInfo() {
+ const {manifest_version: manifestVersion} = chrome.runtime.getManifest();
const {browser, platform} = await api.getEnvironmentInfo();
document.documentElement.dataset.browser = browser;
document.documentElement.dataset.os = platform.os;
+ document.documentElement.dataset.manifestVersion = `${manifestVersion}`;
}
async function setupGenericSettingsController(genericSettingController) {
diff --git a/ext/bg/js/welcome-main.js b/ext/bg/js/welcome-main.js
index 504bd88b..8d43fdb0 100644
--- a/ext/bg/js/welcome-main.js
+++ b/ext/bg/js/welcome-main.js
@@ -28,9 +28,11 @@
*/
async function setupEnvironmentInfo() {
+ const {manifest_version: manifestVersion} = chrome.runtime.getManifest();
const {browser, platform} = await api.getEnvironmentInfo();
document.documentElement.dataset.browser = browser;
document.documentElement.dataset.os = platform.os;
+ document.documentElement.dataset.manifestVersion = `${manifestVersion}`;
}
async function setupGenericSettingsController(genericSettingController) {