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");