From 91e4f8624492d078ec5cc77c70bb2e01d6d3e9da Mon Sep 17 00:00:00 2001 From: flbraun Date: Sat, 16 Mar 2024 14:07:57 +0100 Subject: [PATCH] change token for targeted antiquary search from `antiquary` to `antiq` (shorter to type, but still descriptive) --- src/renderer/palette.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/palette.js b/src/renderer/palette.js index 29aa74a..e2893ab 100644 --- a/src/renderer/palette.js +++ b/src/renderer/palette.js @@ -16,7 +16,7 @@ const ICONS = { GOTO: '../../assets/goto.png', } -const resultTypes = ['wiki', 'poedb', 'ninja', 'trade', 'tft', 'antiquary', 'tool'] +const resultTypes = ['wiki', 'poedb', 'ninja', 'trade', 'tft', 'antiq', 'tool'] const specialSearchPrefixes = resultTypes.map(e => `${e}:`) // register click handlers that hide the window when clicking outside of the palette area @@ -166,7 +166,7 @@ const makePalette = (searchInput, resultlist) => { } if ( enabledResultTypes.includes('antiquary') - && [null, 'antiquary'].includes(targetedSearch) + && [null, 'antiq'].includes(targetedSearch) && Object.prototype.hasOwnProperty.call(r, 'antiquary_url') && r.antiquary_url !== null ) {