mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
feat: use app.whenReady() instead of app.on('ready', ...)
This commit is contained in:
@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user