mirror of
https://github.com/evdboom/Bindery.git
synced 2026-07-22 06:49:36 +00:00
fix: replace activeWindow.setTimeout with setTimeout in fetchEmbedding function
This commit is contained in:
parent
87906e8e42
commit
2e87f03ef1
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ async function fetchEmbedding(
|
|||
} catch {
|
||||
if (attempt === maxRetries) { return null; }
|
||||
// Short exponential backoff: 200ms, 400ms, 800ms, ...
|
||||
await new Promise(r => activeWindow.setTimeout(r, 200 * 2 ** attempt));
|
||||
await new Promise(r => setTimeout(r, 200 * 2 ** attempt));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue