Lecrapouille / gdcef

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

Javascript injection demo #24

Closed daniel-sanche closed 2 years ago

daniel-sanche commented 2 years 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