From 7d650e8e82ca7187626856e053a86842da396545 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 30 Aug 2018 13:43:42 +0200 Subject: [PATCH] Update apps.js --- src/js/yunohost/controllers/apps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index 3b2ab0d0..d49cf574 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -465,7 +465,8 @@ var xhr_object = new XMLHttpRequest(); xhr_object.open("GET", params.app + "raw/master/manifest.json", false); xhr_object.send(null); - } == true) { + return xhr_object.status + } === 200) { rawpath = 'raw/master/manifest.json'; } // Install custom app from github else if (params.app.indexOf("github.com") !== "-1") {