summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2024-03-17 07:22:05 +0100
committerRafael Marçalo <raroma09@gmail.com>2024-06-10 21:12:38 +0100
commit51b08f698635d911e6f76d27a9b9f31fb1a9d7cd (patch)
tree43338826d3c5221ccebb2b3facec2a11db01721d
parent0cd934cc2d6726cb9ced97f6486ab85b4769faea (diff)
Update deprecated JavaScript eval function
Function webkit_web_view_run_javascript has been deprecated since 2.40.
-rw-r--r--surf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index ec62b57..a9c43b1 100644
--- a/surf.c
+++ b/surf.c
@@ -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);
}