diff --git a/public/scripts/backgrounds.js b/public/scripts/backgrounds.js index 7b25728ef..8d521094b 100644 --- a/public/scripts/backgrounds.js +++ b/public/scripts/backgrounds.js @@ -333,6 +333,14 @@ async function autoBackgroundCommand() { const bestMatch = fuse.search(reply, { limit: 1 }); if (bestMatch.length == 0) { + for (const option of options) { + if (String(reply).toLowerCase().includes(option.text.toLowerCase())) { + console.debug('Fallback choosing background:', option); + option.element.click(); + return ''; + } + } + toastr.warning('No match found. Please try again.'); return ''; }