mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
classref: Sync with current 3.4 branch
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
:github_url: hide
|
||||
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the JavaScript.xml source instead.
|
||||
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
||||
|
||||
@@ -18,7 +18,7 @@ Description
|
||||
|
||||
The JavaScript singleton is implemented only in the HTML5 export. It's used to access the browser's JavaScript context. This allows interaction with embedding pages or calling third-party JavaScript APIs.
|
||||
|
||||
**Note:** This singleton can be disabled at build-time to improve security. By default, the JavaScript singleton is enabled. Official export templates also have the JavaScript singleton enabled. See `Compiling for the Web <https://docs.godotengine.org/en/3.3/development/compiling/compiling_for_web.html>`_ in the documentation for more information.
|
||||
**Note:** This singleton can be disabled at build-time to improve security. By default, the JavaScript singleton is enabled. Official export templates also have the JavaScript singleton enabled. See `Compiling for the Web <https://docs.godotengine.org/en/3.4/development/compiling/compiling_for_web.html>`__ in the documentation for more information.
|
||||
|
||||
Tutorials
|
||||
---------
|
||||
@@ -65,7 +65,7 @@ Creates a new JavaScript object using the ``new`` constructor. The ``object`` mu
|
||||
|
||||
Prompts the user to download a file containing the specified ``buffer``. The file will have the given ``name`` and ``mime`` type.
|
||||
|
||||
**Note:** The browser may override the `MIME type <https://en.wikipedia.org/wiki/Media_type>`_ provided based on the file ``name``'s extension.
|
||||
**Note:** The browser may override the `MIME type <https://en.wikipedia.org/wiki/Media_type>`__ provided based on the file ``name``'s extension.
|
||||
|
||||
**Note:** Browsers might block the download if :ref:`download_buffer<class_JavaScript_method_download_buffer>` is not being called from a user interaction (e.g. button click).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user