mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix png files not being recognized when being exported from the HTML5 build
This commit is contained in:
parent
fb7c1a1874
commit
a517f9178a
|
@ -101,5 +101,5 @@ func save_image(image : Image, file_name : String = "export") -> void:
|
|||
if OS.get_name() != "HTML5" or !OS.has_feature('JavaScript'):
|
||||
return
|
||||
|
||||
var png_data = Array(image.get_data())
|
||||
var png_data = Array(image.save_png_to_buffer())
|
||||
JavaScript.eval("download('%s', %s, 'image/png');" % [file_name, str(png_data)], true)
|
||||
|
|
Loading…
Reference in a new issue