aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/generic-page-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/generic-page-main.js')
-rw-r--r--ext/bg/js/generic-page-main.js6
1 files changed, 6 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();
})();