mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Make constant for home content URL
This commit is contained in:
parent
cb4d526dcf
commit
f001cf7570
1 changed files with 4 additions and 2 deletions
|
@ -42,6 +42,8 @@ const appIcon = path.join(__dirname, '../resources/console.png');
|
|||
const DELETE_LOG_FILES_OLDER_THAN_X_SECONDS = 60 * 60 * 24 * 7; // 7 Days
|
||||
const LOG_FILE_REGEX = /(domain-server|ac-monitor|ac)-.*-std(out|err).txt/;
|
||||
|
||||
const HOME_CONTENT_URL = "http://cachefly.highfidelity.com/home.tgz";
|
||||
|
||||
function getBuildInfo() {
|
||||
var buildInfoPath = null;
|
||||
|
||||
|
@ -512,7 +514,7 @@ function deleteResourceDirectoriesAndRestart() {
|
|||
function checkNewContent() {
|
||||
// Start downloading content set
|
||||
var req = request.head({
|
||||
url: "http://cachefly.highfidelity.com/home.tgz"
|
||||
url: HOME_CONTENT_URL
|
||||
}, function (error, response, body) {
|
||||
if (error === null) {
|
||||
var localContent = Date.parse(userConfig.get('homeContentLastModified'));
|
||||
|
@ -639,7 +641,7 @@ function maybeInstallDefaultContentSet(onComplete) {
|
|||
|
||||
// Start downloading content set
|
||||
var req = progress(request.get({
|
||||
url: "http://cachefly.highfidelity.com/home.tgz"
|
||||
url: HOME_CONTENT_URL
|
||||
}, function(error, responseMessage, responseData) {
|
||||
if (aborted) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue