aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/generic-page-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-05-28 21:57:25 -0400
committerGitHub <noreply@github.com>2022-05-28 21:57:25 -0400
commit0d82c52a7624d80ec48dc774fb23db5244bc14f9 (patch)
treece8f7c24250d24c2c4d1eae6c48dfe319de46d57 /ext/js/pages/generic-page-main.js
parent4e4fa49b0b1fd6ec5a018e742eb9910aa32e7637 (diff)
HTML page script refactoring (#2162)
* Move some common functionality * Move setupEnvironmentInfo into ExtensionContentController * Move background/environment.js to extension/environment.js
Diffstat (limited to 'ext/js/pages/generic-page-main.js')
-rw-r--r--ext/js/pages/generic-page-main.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/js/pages/generic-page-main.js b/ext/js/pages/generic-page-main.js
index cfb89609..bde7394b 100644
--- a/ext/js/pages/generic-page-main.js
+++ b/ext/js/pages/generic-page-main.js
@@ -17,16 +17,15 @@
/* global
* DocumentFocusController
+ * ExtensionContentController
*/
-function setupEnvironmentInfo() {
- const {manifest_version: manifestVersion} = chrome.runtime.getManifest();
- document.documentElement.dataset.manifestVersion = `${manifestVersion}`;
-}
-
(() => {
const documentFocusController = new DocumentFocusController();
documentFocusController.prepare();
+
+ const extensionContentController = new ExtensionContentController();
+ extensionContentController.prepare();
+
document.documentElement.dataset.loaded = 'true';
- setupEnvironmentInfo();
})();