Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Remove goja type assertion
Browse files Browse the repository at this point in the history
The remote parser no longer works with goja so the result from evaluate
will not return a goja value. Now just type assert without goja.
  • Loading branch information
ankur22 committed Jan 31, 2024
1 parent e98cf77 commit f8799f2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion common/screenshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ func (s *screenshotter) screenshotElement(h *ElementHandle, opts *ElementHandleS
}

documentRect := bbox
rt := h.execCtx.vu.Runtime()
scrollOffset := h.Evaluate(`() => { return {x: window.scrollX, y: window.scrollY};}`)

var returnVal Position
Expand Down

0 comments on commit f8799f2

Please sign in to comment.