URI: 
       Update deprecated JavaScript eval function - surf - [fork] surf browser, a WebKit based browser
  HTML git clone git@git.drkhsh.at/surf.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 5e591b89a1879941a8bde2f0959f658cfa4732d4
   DIR parent 85bfff10837d655e1b199108b2be82e5c79abc9d
  HTML 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:
         M surf.c                              |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR 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);
        }