1 parent 19a878a commit b320b81Copy full SHA for b320b81
1 file changed
packages/extension/src/lib/cdp.ts
@@ -212,7 +212,9 @@ export async function cdpWaitFor(params: WaitForParams): Promise<{ ok: true }> {
212
}>(tabId, "Runtime.evaluate", { expression: checkExpr, returnByValue: true });
213
if (res.exceptionDetails) {
214
throw new Error(
215
- res.exceptionDetails.exception?.description ?? res.exceptionDetails.text ?? "wait_for check failed",
+ res.exceptionDetails.exception?.description ??
216
+ res.exceptionDetails.text ??
217
+ "wait_for check failed",
218
);
219
}
220
if (res.result.value) return { ok: true };
0 commit comments