util: fix browser detection

This commit is contained in:
Peter Cai 2020-02-19 08:47:22 +08:00
parent 9f7cbdee95
commit ed625596df
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ isText = (mime) ->
# Determine if we consider the user a browser or not
isBrowser = (req) ->
b = detectBrowser req.headers.get 'user-agent'
(not b) or (b.name != 'searchbot')
b and (b.name != 'searchbot')
export {
getFileName,