main: use process.platform instead of os module

This commit is contained in:
leejooy96 committed 2022-10-17 13:50:14 +09:00
1 parent 7aae38ee4a
commit c19619d60d
1 file changed
+1 -2
+1 -2
View File
@@ -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,