UI: Implement JavaScript getOS function Windows platform architecture detection #104136
@ -103,14 +103,6 @@ function getOS() {
|
||||
.then(ua => {
|
||||
// Check if the platform is 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') {
|
||||
OS = "windows-arm";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user