From eb28be445b4e114edebb1c6225d2c8ead322c4d8 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 3 Jan 2018 14:21:19 +0800 Subject: [PATCH] update --- dist/fix/fix.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/fix/fix.js b/dist/fix/fix.js index 401ce0f69..0568197e5 100644 --- a/dist/fix/fix.js +++ b/dist/fix/fix.js @@ -23,6 +23,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons var hasProto = '__proto__' in {}; + var isIE = function isIE() { + return (/(msie|trident)/i.test(navigator.userAgent.toLowerCase()) + ); + }; + var getIEVersion = function getIEVersion() { var version = 0; var agent = navigator.userAgent.toLowerCase(); @@ -39,7 +44,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons } return version; }; - var isIE9Below = getIEVersion() < 9; + var isIE9Below = isIE() && getIEVersion() < 9; var _toString = Object.prototype.toString;