Lecrapouille / gdcef

[Plugin][Version 0.12.1][Functional] Chromium Embedded Framework Webview for Godot 3 and 4
https://discord.gg/EckEwy7S5U
MIT License
250 stars 31 forks source link

Javascript injection demo #24

Closed daniel-sanche closed 1 year ago

daniel-sanche commented 1 year ago

Adds a color picker button to the 2D demo, which injects JavaScript to change the background of the page. Not super useful, but it should be a good demonstration on how to use the new javascript execution functionality

Also fixes a bug in the null check of executeJavaScript that was causing it to fail

Fixes: https://github.com/Lecrapouille/gdcef/issues/21