mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 23:32:12 +03:00
fix(types): preserve browser abort handling (#8818)
Validated in local merge-train T6 (ungrouped batch 1)
This commit is contained in:
@@ -90,7 +90,7 @@ export function __resetHttpBackedChatOverrideForTesting(): void {
|
||||
|
||||
// Helper to make Playwright waitForTimeout abortable via AbortSignal
|
||||
function waitWithSignal(ms: number, signal?: AbortSignal | null): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
if (signal?.aborted) return reject(new DOMException("Aborted", "AbortError"));
|
||||
const onAbort = () => {
|
||||
clearTimeout(timer);
|
||||
|
||||
Reference in New Issue
Block a user