1
0
mirror of git://git.suckless.org/surf synced 2024-12-11 17:29:38 +00:00

Update deprecated JavaScript eval function

Function webkit_web_view_run_javascript has been deprecated since 2.40.
This commit is contained in:
Quentin Rameau 2024-03-17 07:22:05 +01:00
parent 85bfff1083
commit 5e591b89a1

3
surf.c
View File

@ -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);
}