Skip to content

Commit dd67ab6

Browse files
authored
Fix Windows server version (#298)
1 parent 2613948 commit dd67ab6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11

22

33
export const formatOS = (os) => {
4-
if (os.startsWith("windows 10")) {
4+
if (os.lowerCase.startsWith("windows 10")) {
55
return "Windows 10";
66
}
77

8+
if (os.lowerCase.startsWith("windows server 10")) {
9+
return "Windows Server";
10+
}
11+
812
if (os.startsWith("Darwin")) {
913
return os.replace("Darwin", "MacOS");
1014
}

0 commit comments

Comments
 (0)