We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b0fba commit dee3e73Copy full SHA for dee3e73
1 file changed
src/app/downloads/client.tsx
@@ -65,7 +65,18 @@ const getSystemInfo = (): SystemInfo => {
65
let os: SystemInfo['os'] = 'unknown';
66
let arch: SystemInfo['arch'] = 'unknown';
67
68
- if (platform.includes('mac')) {
+ const isIPad = Boolean(
69
+ userAgent.includes('ipad')
70
+ || (navigator.maxTouchPoints > 1
71
+ && platform.includes('mac')
72
+ && !userAgent.includes('iphone')),
73
+ );
74
+
75
+ if (isIPad) {
76
+ os = 'unknown';
77
+ arch = 'unknown';
78
+ }
79
+ else if (platform.includes('mac')) {
80
os = 'mac';
81
arch = navigator.userAgent.includes('Mac') && navigator.userAgent.includes('Apple') ? 'arm64' : 'x64';
82
}
0 commit comments