From 509c819d0e80d3ff09fa6ae8bbf918c976f4cf3c Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 25 Dec 2024 19:54:38 -0600 Subject: [PATCH] stupid bug fix --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 980f911..6cea803 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,6 +50,11 @@ async function combinePath(path: string, tryAgain = true): Promise { if (find(pathDir, dirs)) { return __dirname + path; } else { + const str = await combinePath(path + ".html", false); + if (str !== __dirname + "/webpage/index.html") { + console.log(str); + return str; + } if (devmode && tryAgain) { dirs = await getDirectories(__dirname); return combinePath(path, false);