mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
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
This commit is contained in:
parent
e9b03188fd
commit
a84fbb55c8
1 changed files with 0 additions and 16 deletions
|
@ -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();
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue