Skip to content

Commit

Permalink
file save dialog take 4
Browse files Browse the repository at this point in the history
  • Loading branch information
joric committed Aug 20, 2024
1 parent af01052 commit cc0cf50
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions js/qle.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,14 +837,6 @@ function get_char_code(id, x, y) {
});
});


$('#download').on('click1', function(e) {
var id = get_current_canvas_id();
document.getElementById(id).toBlob(blob=>{
showSaveFilePicker({suggestedName: id+'.png'}).then(f=>f.createWritable()).then(f=>(t=f).write(blob)).then(f=>t.close());
});
});

$('#upload').on('click', function(e) {
$('#file').click();
});
Expand Down

0 comments on commit cc0cf50

Please sign in to comment.