Fix error about webContents on log out (#627)

This commit is contained in:
Michael Telatynski 2023-04-14 09:07:16 +01:00 committed by GitHub
parent 3d215dc777
commit 005ab48f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) {
global.mainWindow.webContents.session.flushStorageData(); global.mainWindow.webContents.session.flushStorageData();
await global.mainWindow.webContents.session.clearStorageData(); await global.mainWindow.webContents.session.clearStorageData();
relaunchApp(); relaunchApp();
break; return; // the app is about to stop, we don't need to reply to the IPC
case "breadcrumbs": { case "breadcrumbs": {
if (process.platform === "darwin") { if (process.platform === "darwin") {