From 7e385af846885fd304f19541a1aee03f62f3968d Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 29 Sep 2019 19:59:25 +0200 Subject: [PATCH] Final test --- src/js/yunohost/controllers/apps.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index 1abf1a8d..ca534849 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -460,24 +460,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); - xhr_object.send(null); - return xhr_object.status; - } === 200) { - rawpath = 'raw/master/manifest.json'; - giturl = params.app + rawpath; - } // Install custom app from github - else if (params.app.indexOf("github.com") !== -1) { - rawpath = 'master/manifest.json'; - giturl = params.app.replace('github.com', 'raw.githubusercontent.com') + rawpath; - } - else { - console.log("You git host is not supported"); - } + var giturl = params.app + "raw/master/manifest.json"; jQuery.ajax({ url: giturl, type: 'GET',