@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
19 lines (18 loc) • 522 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
const setContentWithRetry = async (page, html) => {
try {
await page.setContent(html);
}
catch (error) {
const message = error instanceof Error ? error.message : String(error);
if (!message.includes('page.waitForFunction: Timeout')) {
throw error;
}
await page.waitForTimeout(250);
await page.setContent(html);
}
};
export { setContentWithRetry };
//# sourceMappingURL=setContentWithRetry.js.map