mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
app os
This commit is contained in:
1 parent
dbf446efe1
commit
f3a8100734
1 file changed
+5
@@ -26,6 +26,9 @@ module DetectBrowserDevice
|
|||||||
Silk
|
Silk
|
||||||
/ix
|
/ix
|
||||||
|
|
||||||
|
IOS_APP_USER_AGENT_REGEXP = /Hotwire Native iOS/
|
||||||
|
ANDROID_APP_USER_AGENT_REGEXP = /Hotwire Native Android/
|
||||||
|
|
||||||
WINDOWS_USER_AGENT_REGEXP = /
|
WINDOWS_USER_AGENT_REGEXP = /
|
||||||
Windows|
|
Windows|
|
||||||
Win64 |
|
Win64 |
|
||||||
@@ -122,6 +125,8 @@ module DetectBrowserDevice
|
|||||||
return sdk.downcase if sdk
|
return sdk.downcase if sdk
|
||||||
|
|
||||||
case user_agent
|
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 WINDOWS_USER_AGENT_REGEXP then 'windows'
|
||||||
when ANDROID_USER_AGENT_REGEXP then 'android'
|
when ANDROID_USER_AGENT_REGEXP then 'android'
|
||||||
when IOS_USER_AGENT_REGEXP then 'ios'
|
when IOS_USER_AGENT_REGEXP then 'ios'
|
||||||
|
|||||||
Reference in new issue
Block a user