UI: Implement JavaScript getOS function Windows platform architecture detection #104136

Merged
Márton Lente merged 15 commits from get-os-win-arm into main 2024-11-08 12:03:41 +01:00
Showing only changes of commit f71d879688 - Show all commits

View File

@ -103,14 +103,6 @@ function getOS() {
.then(ua => { .then(ua => {
// Check if the platform is Windows // Check if the platform is Windows
if (navigator.userAgentData.platform === "Windows") { if (navigator.userAgentData.platform === "Windows") {
if (ua.architecture === 'x86') {
if (ua.bitness === '64') {
console.log("x86_64");
}
else if (ua.bitness === '32') {
console.log("x86");
}
}
if (ua.architecture === 'arm') { if (ua.architecture === 'arm') {
OS = "windows-arm"; OS = "windows-arm";
} else { } else {