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)
|
||||
})
|
||||
|
||||
// Initialize IPC Communication
|
||||
IPCs.initialize(mainWindow)
|
||||
|
||||
if (Constants.IS_DEV_ENV) {
|
||||
await mainWindow.loadURL(Constants.APP_INDEX_URL_DEV)
|
||||
} else {
|
||||
await mainWindow.loadFile(Constants.APP_INDEX_URL_PROD)
|
||||
}
|
||||
|
||||
// Initialize IPC Communication
|
||||
IPCs.initialize(mainWindow)
|
||||
|
||||
return mainWindow
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -12,12 +12,12 @@ app.on('ready', async () => {
|
||||
}
|
||||
macOSDisableDefaultMenuItem()
|
||||
|
||||
mainWindow = createMainWindow(mainWindow)
|
||||
mainWindow = await createMainWindow(mainWindow)
|
||||
})
|
||||
|
||||
app.on('activate', () => {
|
||||
app.on('activate', async () => {
|
||||
if (!mainWindow) {
|
||||
mainWindow = createMainWindow(mainWindow)
|
||||
mainWindow = await createMainWindow(mainWindow)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user