From 164c7b4375ee5d4a212a0cd89045e90aa8513ec6 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 31 Oct 2020 16:33:48 -0400 Subject: Fix addition/removal of middle mouse button input not always working (#976) --- ext/bg/js/settings/scan-inputs-simple-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3