mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Change "err" variable for HTML5 in OpenSave.save_pro_file()
This commit is contained in:
parent
67a6397f0e
commit
0713342c0f
|
@ -290,7 +290,7 @@ func save_pxo_file(path : String, autosave : bool, project : Project = Global.cu
|
|||
file.close()
|
||||
|
||||
if OS.get_name() == "HTML5" and !autosave:
|
||||
file.open_compressed(path, File.READ, File.COMPRESSION_ZSTD)
|
||||
err = file.open_compressed(path, File.READ, File.COMPRESSION_ZSTD)
|
||||
if !err:
|
||||
var file_data = Array(file.get_buffer(file.get_len()))
|
||||
JavaScript.eval("download('%s', %s, '');" % [path.get_file(), str(file_data)], true)
|
||||
|
|
Loading…
Reference in a new issue