mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-09-23 00:30:43 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4d6ce5770 | ||
|
|
dd67ab6dcb |
+5
-1
@@ -1,10 +1,14 @@
|
||||
|
||||
|
||||
export const formatOS = (os) => {
|
||||
if (os.startsWith("windows 10")) {
|
||||
if (os.toLowerCase().startsWith("windows 10")) {
|
||||
return "Windows 10";
|
||||
}
|
||||
|
||||
if (os.toLowerCase().startsWith("windows server 10")) {
|
||||
return "Windows Server";
|
||||
}
|
||||
|
||||
if (os.startsWith("Darwin")) {
|
||||
return os.replace("Darwin", "MacOS");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user