diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-05-21 17:55:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 17:55:36 +0200 |
commit | 8fa07eae145e1e37eb8708ce8c117188b58e3ecc (patch) | |
tree | 4d7e4cc526f209065baba845a0e3ab15d8e99f7c /platform/javascript/api/javascript_singleton.h | |
parent | 8c2beeea907cb39baac20df198392ae4fdf64029 (diff) | |
parent | fdf66a21f1a330595f7345f3b0024e0e7cafa28a (diff) |
Merge pull request #48881 from Faless/js/4.x_download_buffer
[HTML5] Add easy to use download API.
Diffstat (limited to 'platform/javascript/api/javascript_singleton.h')
-rw-r--r-- | platform/javascript/api/javascript_singleton.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/api/javascript_singleton.h b/platform/javascript/api/javascript_singleton.h index 45e9950acb..1615efa87e 100644 --- a/platform/javascript/api/javascript_singleton.h +++ b/platform/javascript/api/javascript_singleton.h @@ -58,6 +58,7 @@ public: Ref<JavaScriptObject> get_interface(const String &p_interface); Ref<JavaScriptObject> create_callback(const Callable &p_callable); Variant _create_object_bind(const Variant **p_args, int p_argcount, Callable::CallError &r_error); + void download_buffer(Vector<uint8_t> p_arr, const String &p_name, const String &p_mime = "application/octet-stream"); static JavaScript *get_singleton(); JavaScript(); |