bug fixes

This commit is contained in:
MathMan05 2024-12-25 20:21:10 -06:00
parent 16d6512948
commit 1e73b00ee9

View file

@ -50,9 +50,11 @@ async function combinePath(path: string, tryAgain = true): Promise<string> {
if (find(pathDir, dirs)) {
return __dirname + path;
} else {
const str = await combinePath(path + ".html", false);
if (str !== __dirname + "/webpage/index.html") {
return str;
if (!path.includes(".")) {
const str = await combinePath(path + ".html", false);
if (str !== __dirname + "/webpage/index.html") {
return str;
}
}
if (devmode && tryAgain) {
dirs = await getDirectories(__dirname);