mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Bugfixing
This commit is contained in:
@@ -162,5 +162,9 @@ function getLoadUrl() {
|
||||
}
|
||||
|
||||
export function emitIpcEvent<E extends keyof IpcFromMainEmitEvents>(event: E, data: IpcFromMainEmitEvents[E]) {
|
||||
mainWindow.webContents.send(event, data)
|
||||
try {
|
||||
mainWindow.webContents.send(event, data)
|
||||
} catch (err) {
|
||||
// Ignore; happens when closing Bridge
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user