Security Update

This commit is contained in:
SuperSonic 2020-02-08 15:44:20 +08:00
parent 102739a400
commit 189a1e2c7d
3 changed files with 5 additions and 4 deletions

View file

@ -55,8 +55,8 @@ function log_query(data) {
}
$(function () {
url = window.location.href;
data = url.substring(url.lastIndexOf('#') + 1);
let url = window.location.href;
let data = url.substring(url.lastIndexOf('#') + 1);
if (url.includes("#") && events.includes(data)) {
log_query(data);
} else {

View file

@ -8,7 +8,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
(function () {
$.get("/api/i", function (data) {
name = data;
yuuki_name = data;
});
var page_list = {
"/": "Dashboard",
@ -25,7 +25,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
}
var html_text =
"<nav class=\"navbar navbar-expand-md navbar-dark fixed-top bg-dark\">" +
"<a class=\"navbar-brand\" href=\"/\">" + name + " - WebAdmin</a>" +
"<a class=\"navbar-brand\" href=\"/\">" + yuuki_name + " - WebAdmin</a>" +
"<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarCollapse\"aria-controls=\"navbarCollapse\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">" +
"<span class=\"navbar-toggler-icon\"></span>" +
"</button>" +

View file

@ -1,3 +1,4 @@
/** global: Cookies */
/*
Yuuki_Libs
(c) 2020 Star Inc.