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