mirror of
https://github.com/star-inc/star_yuuki_bot.git
synced 2024-11-10 09:12:44 +08:00
Security Update
This commit is contained in:
parent
102739a400
commit
189a1e2c7d
3 changed files with 5 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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>" +
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/** global: Cookies */
|
||||
/*
|
||||
Yuuki_Libs
|
||||
(c) 2020 Star Inc.
|
||||
|
|
Loading…
Reference in a new issue