mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Pass in client manager object in update checker
This commit is contained in:
parent
a4ef328d8d
commit
0e62103010
1 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,10 @@ function checkForUpdates(manager) {
|
|||
fetch().then((versionData) => {
|
||||
if (!module.exports.isUpdateAvailable) {
|
||||
// Check for updates every 24 hours + random jitter of <3 hours
|
||||
setTimeout(checkForUpdates, 24 * 3600 * 1000 + Math.floor(Math.random() * 10000000));
|
||||
setTimeout(
|
||||
() => checkForUpdates(manager),
|
||||
24 * 3600 * 1000 + Math.floor(Math.random() * 10000000)
|
||||
);
|
||||
}
|
||||
|
||||
if (!versionData.latest) {
|
||||
|
|
Loading…
Reference in a new issue