From 8714f33fa2da6ab2b679641f7746660f4b3303c5 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Tue, 28 Nov 2023 10:55:33 +0900 Subject: [PATCH] feat: use `app.whenReady()` instead of `app.on('ready', ...)` --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 890ac685..7a9c582a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -542,7 +542,7 @@ app.on('activate', async () => { } }); -app.on('ready', async () => { +app.whenReady().then(async () => { if (config.get('options.autoResetAppCache')) { // Clear cache after 20s const clearCacheTimeout = setTimeout(() => {