aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/permissions-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-08 22:52:28 -0400
committerGitHub <noreply@github.com>2021-04-08 22:52:28 -0400
commit51c9bef0320b82751d371d6b6c08c764e62fb239 (patch)
tree7b9f6b6968a5087e00eece55895304eaaf2ce9b6 /ext/js/pages/permissions-main.js
parentc2aa51fdbb748d40fcbbd7708369436fb83a63ff (diff)
Add PermissionsOriginController (#1603)
Diffstat (limited to 'ext/js/pages/permissions-main.js')
-rw-r--r--ext/js/pages/permissions-main.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/js/pages/permissions-main.js b/ext/js/pages/permissions-main.js
index 3cf531a6..d36859ec 100644
--- a/ext/js/pages/permissions-main.js
+++ b/ext/js/pages/permissions-main.js
@@ -17,6 +17,8 @@
/* global
* DocumentFocusController
+ * ModalController
+ * PermissionsOriginController
* PermissionsToggleController
* PersistentStorageController
* SettingsController
@@ -95,12 +97,18 @@ function setupPermissionsToggles() {
permissionsCheckboxes[i].checked = permissions[i];
}
+ const modalController = new ModalController();
+ modalController.prepare();
+
const settingsController = new SettingsController(0);
settingsController.prepare();
const permissionsToggleController = new PermissionsToggleController(settingsController);
permissionsToggleController.prepare();
+ const permissionsOriginController = new PermissionsOriginController(settingsController);
+ permissionsOriginController.prepare();
+
const persistentStorageController = new PersistentStorageController();
persistentStorageController.prepare();
@@ -108,7 +116,7 @@ function setupPermissionsToggles() {
document.documentElement.dataset.loaded = 'true';
- const settingsDisplayController = new SettingsDisplayController(settingsController, null);
+ const settingsDisplayController = new SettingsDisplayController(settingsController, modalController);
settingsDisplayController.prepare();
} catch (e) {
log.error(e);