Преглед изворни кода

fix client device detection

Olivier Massot пре 1 година
родитељ
комит
530e49ba9f
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {