Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTML5] Add easy to use download API. #48881

Merged
merged 1 commit into from
May 21, 2021

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented May 20, 2021

New JavaScript.download_buffer method to create a prompt that let the user download a file.

extends Node

func _ready():
	JavaScript.download_buffer("My File Content".to_utf8(), "file.txt")

download_js

This PR depends on #48719, since too many renames happened there.
This branch won't build unless #48928 is cherry-picked into it.

There is a 3.x version here: /~https://github.com/Faless/godot/tree/js/3.x_download_buffer

doc/classes/JavaScript.xml Outdated Show resolved Hide resolved
@Faless Faless force-pushed the js/4.x_download_buffer branch from bfb2e78 to 7890f05 Compare May 20, 2021 14:19
New `JavaScript.download_buffer` method to create a prompt that let the
user download a file.
@Faless Faless force-pushed the js/4.x_download_buffer branch from 7890f05 to fdf66a2 Compare May 21, 2021 14:02
@Faless Faless marked this pull request as ready for review May 21, 2021 14:04
@Faless Faless requested review from a team as code owners May 21, 2021 14:04
@Faless Faless merged commit 8fa07ea into godotengine:master May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants