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,10 +514,10 @@
const {c} = res;
return (
c === category ||
category !== STYLUS_CATEGORY && (
searchGlobals &&
c === 'global' &&
(query.length || calcHaystack(res)._nLC.includes(category))
(category === STYLUS_CATEGORY
? c === 'stylus' // USW
: c === 'global' && searchGlobals &&
(query.length || calcHaystack(res)._nLC.includes(category))
)
) && (
!query.length || // to skip calling calcHaystack