This commit is contained in:
Pete Matsyburka committed 2026-11-08 09:59:56 +02:00
1 parent dbf446efe1
commit f3a8100734
1 file changed
+5
+5
View File
@@ -26,6 +26,9 @@ module DetectBrowserDevice
Silk
/ix
IOS_APP_USER_AGENT_REGEXP = /Hotwire Native iOS/
ANDROID_APP_USER_AGENT_REGEXP = /Hotwire Native Android/
WINDOWS_USER_AGENT_REGEXP = /
Windows|
Win64 |
@@ -122,6 +125,8 @@ module DetectBrowserDevice
return sdk.downcase if sdk
case user_agent
when IOS_APP_USER_AGENT_REGEXP then 'iosapp'
when ANDROID_APP_USER_AGENT_REGEXP then 'andapp'
when WINDOWS_USER_AGENT_REGEXP then 'windows'
when ANDROID_USER_AGENT_REGEXP then 'android'
when IOS_USER_AGENT_REGEXP then 'ios'