From 072af113c6d9b1baf58b54ef263b2bbca840705b Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Mon, 18 Jul 2022 16:10:12 +0900 Subject: [PATCH] main: minor cleanup code --- src/main/utils/Constants.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/utils/Constants.js b/src/main/utils/Constants.js index 8d8da12..b0120ea 100644 --- a/src/main/utils/Constants.js +++ b/src/main/utils/Constants.js @@ -1,5 +1,5 @@ -import path from 'path' -import os from 'os' +import { join } from 'path' +import { platform } from 'os' import { app } from 'electron' export default class Constants { @@ -8,7 +8,7 @@ export default class Constants { static IS_DEV_ENV = process.env.NODE_ENV === 'development' - static IS_MAC = os.platform() === 'darwin' + static IS_MAC = platform() === 'darwin' static DEFAULT_WEB_PREFERENCES = { nodeIntegration: true, @@ -19,5 +19,5 @@ export default class Constants { static APP_INDEX_URL = process.env.NODE_ENV === 'development' ? 'http://localhost:9080/index.html' - : path.join('file://', app.getAppPath(), '/dist/electron/index.html') + : join('file://', app.getAppPath(), '/dist/electron/index.html') }