feat: use app.whenReady() instead of app.on('ready', ...)

This commit is contained in:
JellyBrick
2023-11-28 10:55:33 +09:00
parent 5dacd50ff6
commit 8714f33fa2

View File

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