From 10910aab17823fe5cffb0b85f056a744ec8b1a59 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 19 Dec 2024 10:16:06 +0100 Subject: [PATCH] remove unnecessary webContents check --- src/features/todos/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/todos/store.js b/src/features/todos/store.js index d6ca6070..60095d10 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js @@ -214,7 +214,7 @@ export default class TodoStore extends FeatureStore { const { authToken } = this.stores.user; const { isDarkThemeActive } = this.stores.ui; const { locale } = this.stores.app; - if (!this.webContents) return; + await sleep(ms('2s')); await ipcRenderer.send(IPC.TODOS_HOST_CHANNEL, { action: 'todos:configure',