From d2090061c13aff4647999b1d8725f774c9fe599b Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Thu, 2 Nov 2023 18:37:11 +0100 Subject: Refactor stdlib to more generic functions --- js.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js.go') diff --git a/js.go b/js.go index 5170800..a132c1c 100644 --- a/js.go +++ b/js.go @@ -55,8 +55,8 @@ func (e Exports) Scrape(p ScrapeParams) (any, error) { return fn(p) } -func (e Exports) Login() { - if fn, ok := e["login"].(func(goja.FunctionCall) goja.Value); ok { +func (e Exports) Setup() { + if fn, ok := e["setup"].(func(goja.FunctionCall) goja.Value); ok { fn(goja.FunctionCall{}) } } -- cgit v1.2.3