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

@@ -1,3 +1,5 @@
import "whatwg-fetch";
import cssVars from "css-vars-ponyfill";
import { sync } from "vuex-router-sync";
import store from "@/store";
import router from "@/router";
@@ -7,6 +9,8 @@ import { recaptcha, loginPage } from "@/utils/constants";
import { login, validateLogin } from "@/utils/auth";
import App from "@/App";
cssVars();
sync(store, router);
async function start() {

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();