From 13235a25b1e26b13fa7dc999ac9db9b043d32e51 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Thu, 2 Jan 2025 18:45:41 +0100 Subject: [PATCH] refactor(utils): add isMac and isWindows as util func --- src/services/utils.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/services/utils.ts b/src/services/utils.ts index 040cefc02..ddb51609d 100644 --- a/src/services/utils.ts +++ b/src/services/utils.ts @@ -332,6 +332,14 @@ export function getResourceDir() { } } +export function isMac() { + return process.platform === "darwin"; +} + +export function isWindows() { + return process.platform === "win32"; +} + export default { randomSecureToken, randomString, @@ -365,5 +373,7 @@ export default { hashedBlobId, toMap, isString, - getResourceDir + getResourceDir, + isMac, + isWindows };