Skip to content

Commit cb102e8

Browse files
committed
ws
1 parent 98626ee commit cb102e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/spoof.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,11 @@ export const createCursor = (
527527
// Make sure the object is in view
528528
const objectId = elem.remoteObject().objectId
529529
if (objectId !== undefined) {
530-
const scrollElemIntoView = (): Promise<void> => elem.evaluate((e, scrollBehavior) => e.scrollIntoView({
531-
block: 'center',
532-
behavior: scrollBehavior
533-
}), optionsResolved.scrollBehavior)
534-
530+
const scrollElemIntoView = async (): Promise<void> => await elem.evaluate((e, scrollBehavior) => e.scrollIntoView({
531+
block: 'center',
532+
behavior: scrollBehavior
533+
}), optionsResolved.scrollBehavior)
534+
535535
if (optionsResolved.scrollBehavior !== undefined) {
536536
await scrollElemIntoView()
537537
} else {

0 commit comments

Comments
 (0)