feat: support for IE11 browser

This commit is contained in:
Ramires Viana
2021-04-15 12:28:19 +00:00
parent 20ebbf6611
commit 7ec24d9d77
7 changed files with 39 additions and 6 deletions

View File

@@ -812,7 +812,10 @@ export default {
}
},
upload: function () {
if (typeof DataTransferItem.prototype.webkitGetAsEntry !== "undefined") {
if (
typeof window.DataTransferItem !== "undefined" &&
typeof DataTransferItem.prototype.webkitGetAsEntry !== "undefined"
) {
this.$store.commit("showHover", "upload");
} else {
document.getElementById("upload-input").click();