fix: replace activeWindow.setTimeout with setTimeout in fetchEmbedding function

This commit is contained in:
Erik van der Boom 2026-05-06 12:11:19 +02:00
parent 87906e8e42
commit 2e87f03ef1

View file

@ -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;