This commit is contained in:
Rizky 2024-08-14 05:32:12 +07:00
parent f513e3e750
commit 1d0957ee1d
1 changed files with 3 additions and 2 deletions

View File

@ -95,9 +95,10 @@ export const initFrontEnd = async (
filename?.endsWith(".css") || filename?.endsWith(".css") ||
filename?.endsWith(".html") filename?.endsWith(".html")
) { ) {
console.log(filename);
if (typeof fe !== "undefined" && !fe.rebuilding) { if (typeof fe !== "undefined" && !fe.rebuilding) {
fe.rebuilding = true; fe.rebuilding = true;
console.log(filename);
clearTimeout(fe.timeout); clearTimeout(fe.timeout);
fe.timeout = setTimeout(async () => { fe.timeout = setTimeout(async () => {
try { try {
@ -106,7 +107,7 @@ export const initFrontEnd = async (
fe.rebuilding = false; fe.rebuilding = false;
} catch (e: any) { } catch (e: any) {
console.error(`Frontend failed rebuild (site: ${id_site})`); console.error(`Frontend failed rebuild (site: ${id_site})`);
console.error(e.messsage); console.error(e.message);
fe.rebuilding = false; fe.rebuilding = false;
} }
}, 500); }, 500);