UI: Implement JavaScript getOS function Windows platform architecture detection #104136
@ -5,6 +5,13 @@ function getOS() {
|
|||||||
// Init variable OS default
|
// Init variable OS default
|
||||||
var OS = "windows";
|
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() {
|
function getOSWinVersion() {
|
||||||
if (navigator.appVersion.indexOf("Win") != -1) {
|
if (navigator.appVersion.indexOf("Win") != -1) {
|
||||||
if (navigator.userAgent.indexOf('Windows NT 5.0') == -1 &&
|
if (navigator.userAgent.indexOf('Windows NT 5.0') == -1 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user