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

Commit ce3a61d

Browse files
committed
Moved the app ready block to the previous location
1 parent ae9136d commit ce3a61d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/brackets.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ define(function (require, exports, module) {
254254
// check once a day, plus 2 minutes,
255255
// as the check will skip if the last check was not -24h ago
256256
window.setInterval(UpdateNotification.checkForUpdate, 86520000);
257+
258+
// Check for updates on App Ready
259+
AppInit.appReady(function () {
260+
UpdateNotification.checkForUpdate();
261+
});
257262
}
258263
}
259264

src/utils/UpdateNotification.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,6 @@ define(function (require, exports, module) {
330330

331331
// Append locale to version info URL
332332
_versionInfoURL = brackets.config.update_info_url + brackets.getLocale() + ".json";
333-
334-
// Check for updates on App Ready
335-
AppInit.appReady(function () {
336-
checkForUpdate();
337-
});
338333

339334
// Define public API
340335
exports.checkForUpdate = checkForUpdate;

0 commit comments

Comments
 (0)