surf

surf browser, a WebKit based browser
git clone git://git.suckless.org/surf
Log | Files | Refs | README | LICENSE

commit 5e591b89a1879941a8bde2f0959f658cfa4732d4
parent 85bfff10837d655e1b199108b2be82e5c79abc9d
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun, 17 Mar 2024 07:22:05 +0100

Update deprecated JavaScript eval function

Function webkit_web_view_run_javascript has been deprecated since 2.40.

Diffstat:
Msurf.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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); }