Skip to content

Commit

Permalink
change token for targeted antiquary search from antiquary to `antiq…
Browse files Browse the repository at this point in the history
…` (shorter to type, but still descriptive)
  • Loading branch information
flbraun committed Mar 16, 2024
1 parent 13cdc39 commit 91e4f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
) {
Expand Down

0 comments on commit 91e4f86

Please sign in to comment.