Parcourir la source

fix client device detection

Olivier Massot il y a 1 an
Parent
commit
530e49ba9f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {