summaryrefslogtreecommitdiffstats
path: root/platform/javascript/javascript_singleton.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [HTML5] Fix JavaScript string parsing with new interface.Fabio Alessandrelli2021-07-071-1/+1
| | | | | Strings are UTF-8 encoded and should be parsed as such, while it was being parsed as a C string before.
* [HTML5] JS callback functions now returns passed value.Fabio Alessandrelli2021-06-181-0/+11
| | | | | | | | JavaScript callbacks created via the `JavaScript.create_callback` method used to always return void. With this patch they return the value returned by the Godot function as one would expect.
* [HTML5] Fix JS build without eval.Fabio Alessandrelli2021-06-141-3/+6
| | | | Also fix download_buffer return type.
* [HTML5] Add easy to use download API.Fabio Alessandrelli2021-05-211-0/+5
| | | | | New `JavaScript.download_buffer` method to create a prompt that let the user download a file.
* [HTML5] Implement Godot <-> JavaScript interface.Fabio Alessandrelli2021-05-201-0/+338