fix(utils): fix isIE logic (#1757)

This commit is contained in:
inottn 2021-04-06 11:27:30 +08:00 committed by GitHub
parent 1ab50ded03
commit 7380b8131c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ export const coerceTruthyValueToArray = arr => {
}
export const isIE = function (): boolean {
return !isServer && !isNaN(Number(document.DOCUMENT_NODE))
return !isServer && !isNaN(Number(document.documentMode))
}
export const isEdge = function (): boolean {