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