mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
Merge branch 'develop' into auth-overhaul
This commit is contained in:
@ -1,15 +1,11 @@
|
||||
import { Platform } from "@prisma/client";
|
||||
|
||||
export function parsePlatform(platform: string) {
|
||||
switch (platform) {
|
||||
switch (platform.toLowerCase()) {
|
||||
case "linux":
|
||||
case "Linux":
|
||||
return Platform.Linux;
|
||||
case "windows":
|
||||
case "Windows":
|
||||
return Platform.Windows;
|
||||
case "macOS":
|
||||
case "MacOS":
|
||||
case "mac":
|
||||
case "macos":
|
||||
return Platform.macOS;
|
||||
|
||||
Reference in New Issue
Block a user