mirror of
https://github.com/schollz/hostyoself.git
synced 2026-01-23 02:15:14 +00:00
add file listing if nothing is found
This commit is contained in:
parent
78f06e76ca
commit
479838af2a
1 changed files with 6 additions and 0 deletions
6
static/main.js
vendored
6
static/main.js
vendored
|
|
@ -129,6 +129,9 @@ const socketMessageListener = (event) => {
|
|||
success: true,
|
||||
key: document.getElementById("inputKey").value,
|
||||
});
|
||||
consoleLog(
|
||||
`${data.ip} [${(new Date()).toUTCString()}] sitemap 200`
|
||||
);
|
||||
} else {
|
||||
socketSend({
|
||||
type: "files",
|
||||
|
|
@ -136,6 +139,9 @@ const socketMessageListener = (event) => {
|
|||
success: false,
|
||||
key: document.getElementById("inputKey").value,
|
||||
});
|
||||
consoleLog(
|
||||
`${data.ip} [${(new Date()).toUTCString()}] sitemap 404`
|
||||
);
|
||||
}
|
||||
} else if (data.type == "get") {
|
||||
var foundFile = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue