On Thu, Aug 29 2024 at 06:41:45 AM +00:00:00, Erik Lundin via webkit-dev <webkit-dev@lists.webkit.org> wrote:
I’m trying to inject javascript code on each page load but it fails on the first load every time. If I reload the page it works. How do I fix this? Is there something I’ve missed in the code below?

You're injecting the script after the load has already finished, so it's too late. Try injecting it when creating the web view instead.


_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to