Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Fix scanning inputs upgrade using the wrong format (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Sep 11, 2020
1 parent a531618 commit 18634dc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ext/bg/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 18634dc

Please sign in to comment.