Skip to content

Commit

Permalink
file save dialog take 5
Browse files Browse the repository at this point in the history
  • Loading branch information
joric committed Aug 20, 2024
1 parent cc0cf50 commit b2aca92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/qle.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ function get_char_code(id, x, y) {
$('#download').on('click', function(e) {
var id = get_current_canvas_id();
document.getElementById(id).toBlob(blob=>{
showSaveFilePicker({suggestedName: id+'.png'}).then(f=>f.createWritable()).then(f=>(f.write(blob) && f.close()))
showSaveFilePicker({suggestedName: id+'.png'}).then(f=>f.createWritable()).then(f=>f.write(blob).then(()=>f.close()));
});
});

Expand Down

0 comments on commit b2aca92

Please sign in to comment.