show USW styles with 'stylus' category

This commit is contained in:
tophf 2021-04-20 21:05:49 +03:00
parent 0aa6d3b463
commit 23aa036db5

View File

@ -514,9 +514,9 @@
const {c} = res;
return (
c === category ||
category !== STYLUS_CATEGORY && (
searchGlobals &&
c === 'global' &&
(category === STYLUS_CATEGORY
? c === 'stylus' // USW
: c === 'global' && searchGlobals &&
(query.length || calcHaystack(res)._nLC.includes(category))
)
) && (