util: fix browser detection
This commit is contained in:
parent
9f7cbdee95
commit
ed625596df
|
@ -49,7 +49,7 @@ isText = (mime) ->
|
||||||
# Determine if we consider the user a browser or not
|
# Determine if we consider the user a browser or not
|
||||||
isBrowser = (req) ->
|
isBrowser = (req) ->
|
||||||
b = detectBrowser req.headers.get 'user-agent'
|
b = detectBrowser req.headers.get 'user-agent'
|
||||||
(not b) or (b.name != 'searchbot')
|
b and (b.name != 'searchbot')
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getFileName,
|
getFileName,
|
||||||
|
|
Loading…
Reference in a new issue