paste currently not working

master
Mark MacKay 2022-08-29 11:17:13 -04:00
parent 03ded83af1
commit e45a730db2
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// window.addEventListener('paste', ... or
// TODO as is paste is currently not working
document.onpaste = function(event){
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
for (index in items) {
@ -6,7 +6,7 @@ document.onpaste = function(event){
if (item.kind === 'file') {
var blob = item.getAsFile();
var reader = new FileReader();
reader.onload = function(event){
reader.onload = function(event){}; // remove?
reader.readAsDataURL(blob);
}
}