We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b558268 commit f15dba5Copy full SHA for f15dba5
src/index.js
@@ -6,7 +6,7 @@ export default {
6
return dummyEl
7
}
8
9
- const botRegex = regex || /bot|googlebot|crawler|spider|robot|crawling/i
+ const botRegex = regex || /bot|googlebot|crawler|spider|robot|crawling|Chrome-Lighthouse/i
10
const isBot = navigator.userAgent && botRegex.test(navigator.userAgent)
11
const shouldShow = invert ? isBot : !isBot
12
0 commit comments