dont show alert if we past text to textbox

This commit is contained in:
cracker0dks 2019-06-05 23:30:46 +02:00
parent a7c02ac47f
commit 7b7243a84d
1 changed files with 2 additions and 2 deletions

View File

@ -379,8 +379,8 @@ window.addEventListener("paste", function (e) {
}
}
if (!imgItemFound) {
showBasicAlert("Please Drag&Drop the file into the Whiteboard. (Browsers don't allow copy+past from the filesystem directly)");
if (!imgItemFound && whiteboard.tool!="text") {
showBasicAlert("Please Drag&Drop the image into the Whiteboard. (Browsers don't allow copy+past from the filesystem directly)");
}
}
});