bug fixes
This commit is contained in:
@@ -50,10 +50,12 @@ async function combinePath(path: string, tryAgain = true): Promise<string> {
|
|||||||
if (find(pathDir, dirs)) {
|
if (find(pathDir, dirs)) {
|
||||||
return __dirname + path;
|
return __dirname + path;
|
||||||
} else {
|
} else {
|
||||||
|
if (!path.includes(".")) {
|
||||||
const str = await combinePath(path + ".html", false);
|
const str = await combinePath(path + ".html", false);
|
||||||
if (str !== __dirname + "/webpage/index.html") {
|
if (str !== __dirname + "/webpage/index.html") {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (devmode && tryAgain) {
|
if (devmode && tryAgain) {
|
||||||
dirs = await getDirectories(__dirname);
|
dirs = await getDirectories(__dirname);
|
||||||
return combinePath(path, false);
|
return combinePath(path, false);
|
||||||
|
Reference in New Issue
Block a user