From a84fbb55c85cf921e50d9796e2b06e9bde5cf73a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 21 Feb 2019 18:17:45 +0100 Subject: [PATCH] Definitely not a good idea to do this here because we aint sure to be logged in ... Actually this whole global.js is absolutely weird --- portal/assets/js/global.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/portal/assets/js/global.js b/portal/assets/js/global.js index 8ca9deb..9507b9f 100644 --- a/portal/assets/js/global.js +++ b/portal/assets/js/global.js @@ -68,20 +68,4 @@ document.addEventListener('DOMContentLoaded', function() { addMaildrop.parentNode.insertBefore(inputDropClone, addMaildrop); }); - - // Get user's infos - var r = new XMLHttpRequest(); - r.open("GET", "/ynhpanel.json", true); - r.onreadystatechange = function () { - // Die if error - if (r.readyState != 4 || r.status != 200) return; - // Response is JSON - response = JSON.parse(r.responseText); - - // load additional theme's script - loadScript("/yunohost/sso/assets/themes/"+ response.theme +"/js/ynhpanel.js"); - - }; - r.send(); - });