summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-11-02 18:37:11 +0100
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2023-11-02 18:37:11 +0100
commitd2090061c13aff4647999b1d8725f774c9fe599b (patch)
treef323a298a507ed116245abe497f3e8c55d6b24c0 /js.go
parentaadd80b3b213988aa5701075f2650198e4066349 (diff)
Refactor stdlib to more generic functions
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{})
}
}