mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +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()
|
file.close()
|
||||||
|
|
||||||
if OS.get_name() == "HTML5" and !autosave:
|
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:
|
if !err:
|
||||||
var file_data = Array(file.get_buffer(file.get_len()))
|
var file_data = Array(file.get_buffer(file.get_len()))
|
||||||
JavaScript.eval("download('%s', %s, '');" % [path.get_file(), str(file_data)], true)
|
JavaScript.eval("download('%s', %s, '');" % [path.get_file(), str(file_data)], true)
|
||||||
|
|
Loading…
Reference in a new issue