fix bugs, improve loading time

This commit is contained in:
Mystikfluu
2022-08-25 17:35:17 +02:00
parent 988d90b46f
commit d9fe8f2642
7 changed files with 31 additions and 18 deletions
+5 -3
View File
@@ -431,9 +431,9 @@ var commonfunctions = {
optionssetup(router, con, commonfunctions);
allsetup(router, con, commonfunctions);
settingshandlersetup(router, con, commonfunctions);
postsetup(router, con, commonfunctions);
const get_pid = postsetup(router, con, commonfunctions);
dmsPersonalMessagessetup(router, con, commonfunctions);
dmspostsetup(router, con, commonfunctions);
const get_dmpid = dmspostsetup(router, con, commonfunctions);
// const toLoad = [
// "api/options.js",
// "api/all.js",
@@ -874,7 +874,9 @@ let global_page_variables = {
htmlescapejs: load_var("./js/htmlescape.js"),
warnmessagejs: load_var("./js/warn_message.js"),
loadfile: load_var,
getChannels: get_channels
getChannels: get_channels,
getPID: get_pid,
getDMPID: get_dmpid
}
router.get("/*", async function(request, response) {