From b0b9a59b9cc168958669079e5771cfdae60209ec Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 30 Aug 2018 18:04:09 +0200 Subject: [PATCH] Update apps.js --- src/js/yunohost/controllers/apps.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index 852f7d76..1abf1a8d 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -461,6 +461,7 @@ // Force trailing slash params.app = params.app.replace(/\/?$/, '/'); var rawpath = ""; + var giturl = params.app; if(function() { var xhr_object = new XMLHttpRequest(); xhr_object.open("GET", params.app + "raw/master/manifest.json", false); @@ -468,11 +469,11 @@ return xhr_object.status; } === 200) { rawpath = 'raw/master/manifest.json'; - var giturl = params.app + rawpath; + giturl = params.app + rawpath; } // Install custom app from github else if (params.app.indexOf("github.com") !== -1) { rawpath = 'master/manifest.json'; - var giturl = params.app.replace('github.com', 'raw.githubusercontent.com') + rawpath; + giturl = params.app.replace('github.com', 'raw.githubusercontent.com') + rawpath; } else { console.log("You git host is not supported");