From f8799f21a5aa2e0203a4be4be2b312a6dc5e5d4f Mon Sep 17 00:00:00 2001 From: ankur22 Date: Mon, 29 Jan 2024 17:22:36 +0000 Subject: [PATCH] Remove goja type assertion 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. --- common/screenshotter.go | 1 - 1 file changed, 1 deletion(-) diff --git a/common/screenshotter.go b/common/screenshotter.go index 83ccf2e52..b1ea66d8f 100644 --- a/common/screenshotter.go +++ b/common/screenshotter.go @@ -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