diff options
| author | Quentin Rameau <quinq@fifth.space> | |
|---|---|---|
| 2024-03-17 07:22:05 +0100 | ||
| committer | Quentin Rameau <quinq@fifth.space> | |
| 2024-03-17 08:22:18 +0100 | ||
| commit | 5e591b89a1879941a8bde2f0959f658cfa4732d4 (patch) | |
| tree | a08c88403e80b100fa31fd07a2fce47c13fcdef3 | |
| parent | 85bfff10837d655e1b199108b2be82e5c79abc9d (diff) | |
| download | surf-5e591b89a1879941a8bde2f0959f658cfa4732d4.tar.gz surf-5e591b89a1879941a8bde2f0959f658cfa4732d4.tar.bz2 surf-5e591b89a1879941a8bde2f0959f658cfa4732d4.zip | |
Update deprecated JavaScript eval function
Function webkit_web_view_run_javascript has been deprecated since 2.40.
@@ -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); } |