summaryrefslogtreecommitdiff
path: root/platform/javascript/javascript_singleton.cpp
AgeCommit message (Collapse)Author
2022-03-09Remove VARIANT_ARG* macrosreduz
* Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-06[HTML5] Implement JavaScript PWA update callbacks.Fabio Alessandrelli
Allows detecting when a new version of the progressive web app service worker is waiting (i.e. an update is pending), along a function to force the update and reload all clients.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-07-07[HTML5] Fix JavaScript string parsing with new interface.Fabio Alessandrelli
Strings are UTF-8 encoded and should be parsed as such, while it was being parsed as a C string before.
2021-06-18[HTML5] JS callback functions now returns passed value.Fabio Alessandrelli
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.
2021-06-14[HTML5] Fix JS build without eval.Fabio Alessandrelli
Also fix download_buffer return type.
2021-05-21[HTML5] Add easy to use download API.Fabio Alessandrelli
New `JavaScript.download_buffer` method to create a prompt that let the user download a file.
2021-05-20[HTML5] Implement Godot <-> JavaScript interface.Fabio Alessandrelli