From 51b08f698635d911e6f76d27a9b9f31fb1a9d7cd Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Sun, 17 Mar 2024 07:22:05 +0100 Subject: Update deprecated JavaScript eval function Function webkit_web_view_run_javascript has been deprecated since 2.40. --- surf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3