Last active
November 21, 2019 14:51
-
-
Save alexgibson/7826f2b4b2e24ab1c21878bff87addff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isWin10S() { | |
try { | |
var mode = JSON.parse(window.external.getHostEnvironmentValue('os-mode')); | |
if (mode && mode['os-mode'] === '2') { | |
return true; | |
} | |
return false; | |
} catch(e) { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment