mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-30 19:43:39 +00:00 
			
		
		
		
	system-util: Remove getOS wrapper.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		| @@ -1,5 +1,3 @@ | ||||
| import os from "os"; | ||||
|  | ||||
| import {ipcRenderer} from "../typed-ipc-renderer"; | ||||
|  | ||||
| export const connectivityERR: string[] = [ | ||||
| @@ -13,27 +11,6 @@ export const connectivityERR: string[] = [ | ||||
|  | ||||
| const userAgent = ipcRenderer.sendSync("fetch-user-agent"); | ||||
|  | ||||
| export function getOS(): string { | ||||
|   const platform = os.platform(); | ||||
|   if (platform === "darwin") { | ||||
|     return "Mac"; | ||||
|   } | ||||
|  | ||||
|   if (platform === "linux") { | ||||
|     return "Linux"; | ||||
|   } | ||||
|  | ||||
|   if (platform === "win32") { | ||||
|     if (Number.parseFloat(os.release()) < 6.2) { | ||||
|       return "Windows 7"; | ||||
|     } | ||||
|  | ||||
|     return "Windows 10"; | ||||
|   } | ||||
|  | ||||
|   return ""; | ||||
| } | ||||
|  | ||||
| export function getUserAgent(): string { | ||||
|   return userAgent; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user