aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings2
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-16 22:37:58 -0500
committerGitHub <noreply@github.com>2021-01-16 22:37:58 -0500
commita39eede04ba458b9f198006f62658d9ebb1b970f (patch)
tree7f923ff249f45985937e53826c2a39ecc7be8d20 /ext/bg/js/settings2
parent86e4e53372003166d013e20d6fc2764bb928c37a (diff)
If scopes are now empty but weren't previously, add all valid scopes (#1259)
Diffstat (limited to 'ext/bg/js/settings2')
-rw-r--r--ext/bg/js/settings2/keyboard-shortcuts-controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/bg/js/settings2/keyboard-shortcuts-controller.js b/ext/bg/js/settings2/keyboard-shortcuts-controller.js
index 43dd738e..ea6bd81c 100644
--- a/ext/bg/js/settings2/keyboard-shortcuts-controller.js
+++ b/ext/bg/js/settings2/keyboard-shortcuts-controller.js
@@ -330,6 +330,9 @@ class KeyboardShortcutHotkeyEntry {
}
}
if (changed) {
+ if (scopes.length === 0) {
+ scopes.push(...validScopes);
+ }
targets.push({
action: 'set',
path: `${this._basePath}.scopes`,