diff --git a/src/content/hinting.ts b/src/content/hinting.ts index 485f6fa5..d1128f98 100644 --- a/src/content/hinting.ts +++ b/src/content/hinting.ts @@ -432,8 +432,7 @@ export function hintElements(elements: Element[], option = {}) { const first = await Promise.race([onSelect.promise, endPromise]) if (first && typeof first === "object" && key in first) { yield first[key] - } - else return await endPromise + } else return await endPromise } } const result = wrap()