2 files changed
+6
-6
No files matched your search
@@ -40,15 +40,15 @@ export const createMainWindow = async (mainWindow: BrowserWindow): Promise<Brows
|
|||||||
mainWindow.setAlwaysOnTop(false)
|
mainWindow.setAlwaysOnTop(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Initialize IPC Communication
|
||||||
|
IPCs.initialize(mainWindow)
|
||||||
|
|
||||||
if (Constants.IS_DEV_ENV) {
|
if (Constants.IS_DEV_ENV) {
|
||||||
await mainWindow.loadURL(Constants.APP_INDEX_URL_DEV)
|
await mainWindow.loadURL(Constants.APP_INDEX_URL_DEV)
|
||||||
} else {
|
} else {
|
||||||
await mainWindow.loadFile(Constants.APP_INDEX_URL_PROD)
|
await mainWindow.loadFile(Constants.APP_INDEX_URL_PROD)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize IPC Communication
|
|
||||||
IPCs.initialize(mainWindow)
|
|
||||||
|
|
||||||
return mainWindow
|
return mainWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -12,12 +12,12 @@ app.on('ready', async () => {
|
|||||||
}
|
}
|
||||||
macOSDisableDefaultMenuItem()
|
macOSDisableDefaultMenuItem()
|
||||||
|
|
||||||
mainWindow = createMainWindow(mainWindow)
|
mainWindow = await createMainWindow(mainWindow)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.on('activate', () => {
|
app.on('activate', async () => {
|
||||||
if (!mainWindow) {
|
if (!mainWindow) {
|
||||||
mainWindow = createMainWindow(mainWindow)
|
mainWindow = await createMainWindow(mainWindow)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user