summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-31 16:33:48 -0400
committerGitHub <noreply@github.com>2020-10-31 16:33:48 -0400
commit164c7b4375ee5d4a212a0cd89045e90aa8513ec6 (patch)
tree9555ea1922a916e155854836e32e9a19c5c80987 /ext
parent21cae0e38ef15658205db41dd988e53deb76da8b (diff)
Fix addition/removal of middle mouse button input not always working (#976)
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings/scan-inputs-simple-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/scan-inputs-simple-controller.js b/ext/bg/js/settings/scan-inputs-simple-controller.js
index 636fd102..a20eecdc 100644
--- a/ext/bg/js/settings/scan-inputs-simple-controller.js
+++ b/ext/bg/js/settings/scan-inputs-simple-controller.js
@@ -206,7 +206,7 @@ class ScanInputsSimpleController {
const includeValues = this._splitValue(include);
const excludeValues = this._splitValue(exclude);
if (
- (includeValues.length === 0 || (includeValues.length === 1 && includeValues.includes('mouse2'))) &&
+ (includeValues.length === 1 && includeValues[0] === 'mouse2') &&
excludeValues.length === 0
) {
return i;