mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Check updates after 2s
This commit is contained in:
5
index.js
5
index.js
@ -217,7 +217,10 @@ app.on("ready", () => {
|
||||
});
|
||||
|
||||
if (!is.dev() && config.get("options.autoUpdates")) {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
const updateTimeout = setTimeout(() => {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
clearTimeout(updateTimeout);
|
||||
}, 2000);
|
||||
autoUpdater.on("update-available", () => {
|
||||
const downloadLink =
|
||||
"https://github.com/th-ch/youtube-music/releases/latest";
|
||||
|
||||
Reference in New Issue
Block a user