This commit is contained in:
Mario Zechner 2025-10-02 02:48:25 +02:00
parent 6a355d7a7e
commit 3331701e7e
5 changed files with 7 additions and 130 deletions

View file

@ -189,6 +189,7 @@ Note: This requires the activeTab permission and only works on http/https pages,
// Wrap code in async function to support await
const asyncCode = `(async () => { ${code} })()`;
// biome-ignore lint/security/noGlobalEval: needed
// biome-ignore lint/complexity/noCommaOperator: indirect eval pattern
const resultPromise = (0, eval)(asyncCode);
// Wait for async code to complete
Promise.resolve(resultPromise)