From c19619d60da390c6bdc6ee772d20c3dde9f273c7 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Mon, 17 Oct 2022 13:50:14 +0900 Subject: [PATCH] main: use process.platform instead of os module --- src/main/utils/Constants.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/utils/Constants.js b/src/main/utils/Constants.js index ea66829..6ca756f 100644 --- a/src/main/utils/Constants.js +++ b/src/main/utils/Constants.js @@ -1,4 +1,3 @@ -import { platform } from 'os' import { join } from 'path' export default class Constants { @@ -6,7 +5,7 @@ export default class Constants { static IS_DEV_ENV = process.env.NODE_ENV === 'development' - static IS_MAC = platform() === 'darwin' + static IS_MAC = process.platform === 'darwin' static DEFAULT_WEB_PREFERENCES = { nodeIntegration: true,