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

Commit e13124c

Browse files
author
Narciso Jaramillo
committed
Move update info URL to package.json
1 parent 92d946f commit e13124c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"about_icon" : "styles/images/brackets_icon.svg",
1919
"show_debug_menu" : true,
2020
"enable_jslint" : true,
21-
"forum_url" : "https://groups.google.com/forum/?fromgroups#!forum/brackets-dev"
21+
"forum_url" : "https://groups.google.com/forum/?fromgroups#!forum/brackets-dev",
22+
"update_info_url" : "http://dev.brackets.io/updates/stable/"
2223
}
2324
}

src/utils/UpdateNotification.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)