mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-23 03:11:01 +01:00
fix(platform): enhance macOS platform detection for Intel architecture
This commit is contained in:
@@ -35,7 +35,9 @@ function detectPlatform(): Platform {
|
||||
const platform = navigator.platform.toLowerCase();
|
||||
if (platform.includes('win')) return 'windows-amd64';
|
||||
if (platform.includes('mac')) {
|
||||
// Check for Apple Silicon - this is a heuristic
|
||||
// Check for user agent for architecture hints
|
||||
const ua = navigator.userAgent || '';
|
||||
if (ua.includes('Intel')) return 'macos-amd64';
|
||||
return 'macos-arm64';
|
||||
}
|
||||
if (platform.includes('linux')) return 'linux-amd64';
|
||||
|
||||
Reference in New Issue
Block a user