Skip to content

Commit 2954c09

Browse files
committed
fix(nuxt): remove unneeded pattern from regexp
1 parent 444d609 commit 2954c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/app/components/nuxt-root.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if (import.meta.dev && results && results.some(i => i && 'then' in i)) {
5656
const error = useError()
5757
// render an empty <div> when plugins have thrown an error but we're not yet rendering the error page
5858
const abortRender = import.meta.server && error.value && !nuxtApp.ssrContext.error
59-
const BOT_RE = /bot\b|chrome-lighthouse|facebookexternalhit|google\b|googlebot/i
59+
const BOT_RE = /bot\b|chrome-lighthouse|facebookexternalhit|google\b/i
6060
onErrorCaptured((err, target, info) => {
6161
nuxtApp.hooks.callHook('vue:error', err, target, info).catch(hookError => console.error('[nuxt] Error in `vue:error` hook', hookError))
6262
if (import.meta.client && BOT_RE.test(navigator.userAgent)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy