From 471fccbfa075bb1ee198ba4a70d9d838c4bcfeb1 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Sat, 8 Feb 2020 16:05:32 +0800 Subject: [PATCH] Security Update --- libs/webadmin/static/js/header.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/libs/webadmin/static/js/header.js b/libs/webadmin/static/js/header.js index cc9a42c..571bd4c 100644 --- a/libs/webadmin/static/js/header.js +++ b/libs/webadmin/static/js/header.js @@ -6,10 +6,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -(function () { - $.get("/api/i", function (data) { - yuuki_name = data; - }); +function header2html(yuuki_name) { var page_list = { "/": "Dashboard", "/groups": "Groups", @@ -23,10 +20,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. else nav_list += "" + page_list[p_key] + ""; } - var html_text = - "