From 18634dca1a9cc1f0ea677f9bf0fe3971174d9d30 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 11 Sep 2020 00:29:38 -0400 Subject: [PATCH] Fix scanning inputs upgrade using the wrong format (#805) --- ext/bg/js/options.js | 14 +++++++++++--- 1 file 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; }