1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Change "err" variable for HTML5 in OpenSave.save_pro_file()

This commit is contained in:
OverloadedOrama 2020-07-05 02:22:48 +03:00
parent 67a6397f0e
commit 0713342c0f

View file

@ -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)