Explorar o código

fix client device detection

Olivier Massot hai 1 ano
pai
achega
530e49ba9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      composables/useClientDevice.ts

+ 1 - 1
composables/useClientDevice.ts

@@ -6,7 +6,7 @@ export function useClientDevice() {
 
     if (userAgent === null) {
       const headers = useRequestHeaders()
-      userAgent = headers.userAgent
+      userAgent = headers['user-agent']
     }
 
     if (!userAgent) {