@@ -35,7 +35,8 @@ define(function (require, exports, module) {
3535 NativeApp = require ( "utils/NativeApp" ) ,
3636 PreferencesManager = require ( "preferences/PreferencesManager" ) ,
3737 Strings = require ( "strings" ) ,
38- StringUtils = require ( "utils/StringUtils" ) ;
38+ StringUtils = require ( "utils/StringUtils" ) ,
39+ Global = require ( "utils/Global" ) ;
3940
4041 // Extract current build number from package.json version field 0.0.0-0
4142 var _buildNumber = / - ( [ 0 - 9 ] + ) / . exec ( brackets . metadata . version ) [ 1 ] ;
@@ -55,7 +56,7 @@ define(function (require, exports, module) {
5556 // you force an update check it is always loaded.
5657
5758 // URL to fetch the version information.
58- var _versionInfoURL = "http://dev.brackets.io/updates/stable/" ; // {locale}.json will be appended
59+ var _versionInfoURL ;
5960
6061 // Information on all posted builds of Brackets. This is an Array, where each element is
6162 // an Object with the following fields:
@@ -344,7 +345,7 @@ define(function (require, exports, module) {
344345 }
345346
346347 // Append locale to version info URL
347- _versionInfoURL += ( window . localStorage . getItem ( "locale" ) || brackets . app . language ) + ".json" ;
348+ _versionInfoURL = brackets . config . update_info_url + ( window . localStorage . getItem ( "locale" ) || brackets . app . language ) + ".json" ;
348349
349350 // Define public API
350351 exports . checkForUpdate = checkForUpdate ;
0 commit comments