aboutsummaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2024-03-17 07:22:05 +0100
committerQuentin Rameau <quinq@fifth.space>2024-03-17 08:22:18 +0100
commit5e591b89a1879941a8bde2f0959f658cfa4732d4 (patch)
treea08c88403e80b100fa31fd07a2fce47c13fcdef3 /surf.c
parent85bfff10837d655e1b199108b2be82e5c79abc9d (diff)
Update deprecated JavaScript eval function
Function webkit_web_view_run_javascript has been deprecated since 2.40.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index b8b76c9..1515a57 100644
--- a/surf.c
+++ b/surf.c
@@ -973,7 +973,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);
}