stupid bug fix
This commit is contained in:
parent
fc6901f7cb
commit
509c819d0e
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ 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 {
|
||||||
|
const str = await combinePath(path + ".html", false);
|
||||||
|
if (str !== __dirname + "/webpage/index.html") {
|
||||||
|
console.log(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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue