Fix error initialization email

This commit is contained in:
garronej
2023-03-25 04:42:44 +01:00
parent 741dee57e4
commit 9f7fe0d8f7

View File

@ -30,11 +30,11 @@ function getThemeSrcDirPath() {
.filter(exclude(undefined))[0]; .filter(exclude(undefined))[0];
if (themeSrcDirBasename === undefined) { if (themeSrcDirBasename === undefined) {
if (!fs.existsSync(pathJoin(srcDirPath, "kcContext.ts"))) { if (fs.existsSync(pathJoin(srcDirPath, "login")) || fs.existsSync(pathJoin(srcDirPath, "account"))) {
return { "themeSrcDirPath": undefined };
}
return { "themeSrcDirPath": srcDirPath }; return { "themeSrcDirPath": srcDirPath };
} }
return { "themeSrcDirPath": undefined };
}
return { themeSrcDirPath }; return { themeSrcDirPath };
} }