Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit f381d16

Browse files
committed
Merge pull request #2368 from mynetx/issue-2271-updatecheckwhilerunning
Check for updates every 24 hours while Brackets is running
2 parents 18f1b76 + e806421 commit f381d16

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/brackets.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ define(function (require, exports, module) {
293293

294294
// Check for updates
295295
if (!params.get("skipUpdateCheck") && !brackets.inBrowser) {
296+
// check once a day, plus 2 minutes,
297+
// as the check will skip if the last check was not -24h ago
298+
window.setInterval(UpdateNotification.checkForUpdate, 86520000);
296299
UpdateNotification.checkForUpdate();
297300
}
298301
}

0 commit comments

Comments
 (0)