Skip to content

Commit f4d6ce5

Browse files
committed
Fix Windows server version lowercase
1 parent dd67ab6 commit f4d6ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22

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

8-
if (os.lowerCase.startsWith("windows server 10")) {
8+
if (os.toLowerCase().startsWith("windows server 10")) {
99
return "Windows Server";
1010
}
1111

0 commit comments

Comments
 (0)