fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 77d5b4ee68 - Show all commits

View file

@ -335,6 +335,9 @@ export class GBSSR {
if (GBServer.globals.wwwroot && url === '/'){ if (GBServer.globals.wwwroot && url === '/'){
path = GBServer.globals.wwwroot + "/index.html"; // TODO. path = GBServer.globals.wwwroot + "/index.html"; // TODO.
} }
if (!min) {
path = Path.join(GBServer.globals.wwwroot, url);
}
if (Fs.existsSync(path)) { if (Fs.existsSync(path)) {
if (min) { if (min) {
let html = Fs.readFileSync(path, 'utf8'); let html = Fs.readFileSync(path, 'utf8');