From: Quentin Rameau Date: Sun, 17 Mar 2024 06:22:05 +0000 (+0100) Subject: Update deprecated JavaScript eval function X-Git-Url: http://git.skullheadx.com/index.css?a=commitdiff_plain;h=5e591b89a1879941a8bde2f0959f658cfa4732d4;p=surf.git Update deprecated JavaScript eval function Function webkit_web_view_run_javascript has been deprecated since 2.40. --- 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); }