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(() => {