fix: return redirect for whatsapp user agent (#1753)

zio/stable
baptiste0928 2023-02-15 11:13:43 +01:00 committed by GitHub
parent ef680ab8b3
commit f73019c1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import { sendRedirect } from 'h3'
const BOT_RE = /bot\b|index|spider|facebookexternalhit|crawl|wget|slurp|mediapartners-google/i
const BOT_RE = /bot\b|index|spider|facebookexternalhit|crawl|wget|slurp|mediapartners-google|whatsapp/i
export default defineNuxtPlugin(async (nuxtApp) => {
const route = useRoute()