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 2be80e0526 - Show all commits

View File

@ -5,6 +5,13 @@ function getOS() {
// Init variable OS default
var OS = "windows";
// Check if the browser method 'navigator.userAgentData' is supported
if (navigator.userAgentData && typeof navigator.userAgentData.getHighEntropyValues == 'function') {
console.log('navigator.userAgentData.getHighEntropyValues is supported');
} else {
console.log('navigator.userAgentData.getHighEntropyValues is not supported');
}
function getOSWinVersion() {
if (navigator.appVersion.indexOf("Win") != -1) {
if (navigator.userAgent.indexOf('Windows NT 5.0') == -1 &&