Skip to content

Commit f15dba5

Browse files
chore: add google page speed (#3)
1 parent b558268 commit f15dba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
return dummyEl
77
}
88

9-
const botRegex = regex || /bot|googlebot|crawler|spider|robot|crawling/i
9+
const botRegex = regex || /bot|googlebot|crawler|spider|robot|crawling|Chrome-Lighthouse/i
1010
const isBot = navigator.userAgent && botRegex.test(navigator.userAgent)
1111
const shouldShow = invert ? isBot : !isBot
1212

0 commit comments

Comments
 (0)