Explorar el Código

fix client device detection

Olivier Massot hace 1 año
padre
commit
530e49ba9f
Se han modificado 1 ficheros con 1 adiciones y 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) {