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

[3.x] [HTML5] Add easy to use download API. #48929

Merged
merged 1 commit into from
May 21, 2021

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented May 21, 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")

3.x version of #48881

New `JavaScript.download_buffer` method to create a prompt that let the
user download a file.
@akien-mga akien-mga merged commit 9403525 into godotengine:3.x May 21, 2021
@akien-mga
Copy link
Member

Thanks!

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