From b2aca92e80bfda68faec2d6ef1178b38db7d87aa Mon Sep 17 00:00:00 2001 From: joric Date: Wed, 21 Aug 2024 01:29:57 +0500 Subject: [PATCH] file save dialog take 5 --- js/qle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/qle.js b/js/qle.js index b0bd599..8087ba8 100644 --- a/js/qle.js +++ b/js/qle.js @@ -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())); }); });