aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/permissions-toggle-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/settings/permissions-toggle-controller.js')
-rw-r--r--ext/bg/js/settings/permissions-toggle-controller.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/settings/permissions-toggle-controller.js b/ext/bg/js/settings/permissions-toggle-controller.js
index 04c8f3f2..f80e7585 100644
--- a/ext/bg/js/settings/permissions-toggle-controller.js
+++ b/ext/bg/js/settings/permissions-toggle-controller.js
@@ -71,13 +71,13 @@ class PermissionsToggleController {
if (value || !hasPermissionsSetting) {
toggle.checked = valuePre;
- const requiredPermissions = this._getRequiredPermissions(toggle);
+ const permissions = this._getRequiredPermissions(toggle);
try {
- value = await this._settingsController.setPermissionsGranted(requiredPermissions, value);
+ value = await this._settingsController.permissionsUtil.setPermissionsGranted({permissions}, value);
} catch (error) {
value = valuePre;
try {
- value = await this._settingsController.hasPermissions(requiredPermissions);
+ value = await this._settingsController.permissionsUtil.hasPermissions({permissions});
} catch (error2) {
// NOP
}
@@ -113,7 +113,7 @@ class PermissionsToggleController {
}
async _updateValidity() {
- const permissions = await this._settingsController.getAllPermissions();
+ const permissions = await this._settingsController.permissionsUtil.getAllPermissions();
this._onPermissionsChanged({permissions});
}