From 9f74ac65a6991facc028b0aef74e471686ed8cd8 Mon Sep 17 00:00:00 2001 From: DrDeee <63226814+DrDeee@users.noreply.github.com> Date: Thu, 7 Jan 2021 22:20:25 +0100 Subject: [PATCH] Update pullRemove for testing mode --- app/assets/js/distromanager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/js/distromanager.js b/app/assets/js/distromanager.js index 90a2ab8..aec7985 100644 --- a/app/assets/js/distromanager.js +++ b/app/assets/js/distromanager.js @@ -538,9 +538,10 @@ exports.pullRemote = function(){ } return new Promise((resolve, reject) => { const distroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' + const testDistroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' //const distroURL = 'https://gist.githubusercontent.com/dscalzi/53b1ba7a11d26a5c353f9d5ae484b71b/raw/' const opts = { - url: distroURL, + url: ConfigManager.isTesting()? testDistroURL : distroURL, timeout: 2500 } const distroDest = path.join(ConfigManager.getLauncherDirectory(), 'distribution.json') @@ -608,4 +609,4 @@ exports.isDevMode = function(){ */ exports.getDistribution = function(){ return data -} \ No newline at end of file +}