summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--surf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index ec62b57..a9c43b1 100644
--- a/surf.c
+++ b/surf.c
@@ -1001,7 +1001,8 @@ evalscript(Client *c, const char *jsstr, ...)
script = g_strdup_vprintf(jsstr, ap);
va_end(ap);
- webkit_web_view_run_javascript(c->view, script, NULL, NULL, NULL);
+ webkit_web_view_evaluate_javascript(c->view, script, -1,
+ NULL, NULL, NULL, NULL, NULL);
g_free(script);
}