refactor: use internal nuxt helper (#1176)

pull/1180/head
Daniel Roe 2023-01-15 14:43:16 +00:00 zatwierdzone przez GitHub
rodzic 5a6248a08f
commit 0dc0a1baa6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -7,8 +7,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
if (!route.params.server)
return
const req = nuxtApp.ssrContext!.event.node.req
const userAgent = req.headers['user-agent']!
const userAgent = useRequestHeaders()['user-agent']
if (!userAgent)
return