8306281: function isWsl() returns false on WSL2
Reviewed-by: erikj
This commit is contained in:
parent
c884862ad2
commit
9b0baa10b9
@ -1519,7 +1519,7 @@ var getVersionNumbers = function () {
|
||||
var isWsl = function (input) {
|
||||
return ( input.build_osenv == "wsl"
|
||||
|| (input.build_os == "linux"
|
||||
&& java.lang.System.getProperty("os.version").contains("Microsoft")));
|
||||
&& java.lang.System.getProperty("os.version").toLowerCase().contains("microsoft")));
|
||||
}
|
||||
|
||||
var error = function (s) {
|
||||
|
Loading…
Reference in New Issue
Block a user