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:
parent
85bfff1083
commit
5e591b89a1
3
surf.c
3
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user