mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 16:24:49 -04:00
Change "err" variable for HTML5 in OpenSave.save_pro_file()
This commit is contained in:
parent
67a6397f0e
commit
0713342c0f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue