diff options
author | Quentin Rameau <quinq@fifth.space> | 2024-03-17 07:22:05 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2024-06-10 21:12:38 +0100 |
commit | 51b08f698635d911e6f76d27a9b9f31fb1a9d7cd (patch) | |
tree | 43338826d3c5221ccebb2b3facec2a11db01721d /surf.c | |
parent | 0cd934cc2d6726cb9ced97f6486ab85b4769faea (diff) |
Update deprecated JavaScript eval function
Function webkit_web_view_run_javascript has been deprecated since 2.40.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |