Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix: remove timeout to check data-wf-loaded

Amruth Pillai4cf5cdd1812f
diff --git a/src/integrations/orpc/services/printer.ts b/src/integrations/orpc/services/printer.ts
index cbd3ca20a..7c699bfc1 100644
--- a/src/integrations/orpc/services/printer.ts
+++ b/src/integrations/orpc/services/printer.ts
@@ -187,7 +187,7 @@ async function doPrintResumeAsPDF(
),
);
await page
- .waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 })
+ .waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true")
.catch((error) =>
throwPrinterStepError(
"Resume print page did not finish loading",
@@ -522,7 +522,7 @@ async function doGetResumeScreenshot(
),
);
await page
- .waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 })
+ .waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true")
.catch((error) =>
throwPrinterStepError(
"Resume screenshot page did not finish loading",