From a39eede04ba458b9f198006f62658d9ebb1b970f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 16 Jan 2021 22:37:58 -0500 Subject: If scopes are now empty but weren't previously, add all valid scopes (#1259) --- ext/bg/js/settings2/keyboard-shortcuts-controller.js | 3 +++ 1 file changed, 3 insertions(+) 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`, -- cgit v1.2.3