summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
Diffstat (limited to 'js.go')
-rw-r--r--js.go4
1 files changed, 2 insertions, 2 deletions
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{})
}
}