This commit is contained in:
Louis Lam 2025-06-15 19:17:03 +08:00
parent ca690f943a
commit f8e59945eb

View file

@ -112,7 +112,7 @@ module.exports.generalSocketHandler = (socket, server) => {
if (file.startsWith("index.")) { if (file.startsWith("index.")) {
callback({ callback({
ok: true, ok: true,
code: fsAsync.readFile(path.join(dir, file), "utf8"), code: await fsAsync.readFile(path.join(dir, file), "utf8"),
}); });
return; return;
} }