aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-11 00:29:38 -0400
committerGitHub <noreply@github.com>2020-09-11 00:29:38 -0400
commit18634dca1a9cc1f0ea677f9bf0fe3971174d9d30 (patch)
treedd3a363d07d8155da12abe167c6939625eb8567d /ext/bg
parenta531618c48481a30d63112cf59b7806291f0bda4 (diff)
Fix scanning inputs upgrade using the wrong format (#805)
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/options.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index ab32bb11..ac42fc09 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -493,19 +493,27 @@ class OptionsUtil {
const {modifier, middleMouse} = profileOptions.scanning;
const scanningInputs = [];
+ let modifierInput = '';
switch (modifier) {
case 'alt':
case 'ctrl':
case 'shift':
case 'meta':
- scanningInputs.push(modifier);
+ modifierInput = modifier;
break;
case 'none':
- scanningInputs.push('');
+ modifierInput = '';
break;
}
+ scanningInputs.push({
+ include: modifierInput,
+ exclude: ''
+ });
if (middleMouse) {
- scanningInputs.push('mouse2');
+ scanningInputs.push({
+ include: 'mouse2',
+ exclude: ''
+ });
}
profileOptions.scanning.inputs = scanningInputs;
}