mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: improve error handling
This commit is contained in:
1 parent
5e9e53a02a
commit
8774b77280
1 file changed
+2
-2
+2
-2
@@ -64,7 +64,7 @@ function createWindow(): BrowserWindow {
|
||||
}
|
||||
|
||||
win.on('close', () => {
|
||||
store.set(WINDOW_BOUNDS, win?.getNormalBounds());
|
||||
if (win) store.set(WINDOW_BOUNDS, win.getNormalBounds());
|
||||
});
|
||||
|
||||
// Emitted when the window is closed.
|
||||
@@ -144,7 +144,7 @@ try {
|
||||
});
|
||||
|
||||
app.on('before-quit', () => {
|
||||
store.set(WINDOW_BOUNDS, win?.getNormalBounds());
|
||||
if (win) store.set(WINDOW_BOUNDS, win.getNormalBounds());
|
||||
});
|
||||
|
||||
if (serve && process.platform === 'darwin') {
|
||||
|
||||
Reference in new issue
Block a user