From 3d382c4fcdb089c85a20c02b3f47c896d3afeb6b Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 30 Aug 2018 15:00:29 +0200 Subject: [PATCH] typo and try to unset params.app --- src/js/yunohost/controllers/apps.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index 5d969922..0c4e4992 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -467,17 +467,18 @@ xhr_object.send(null); return xhr_object.status; } === 200) { - rawpath = 'raw/master/manifest.json'; + rawpath = 'raw/master/manifest.json'; + var giturl = params.app + rawpath; } // Install custom app from github else if (params.app.indexOf("github.com") !== "-1") { - params.app = params.app.replace('github.com', 'raw.githubusercontent.com'); rawpath = 'master/manifest.json'; + var giturl = params.app.replace('github.com', 'raw.githubusercontent.com') + rawpath; } else { console.log("You git host is not supported"); } jQuery.ajax({ - url: params.app + rawpath, + url: giturl, type: 'GET', }) .done(function(manifest) {