From a0e946e23287c58e43ce0a6258ab4b7b74536c49 Mon Sep 17 00:00:00 2001 From: heqianqian01 Date: Tue, 20 Oct 2020 15:48:55 +0800 Subject: [PATCH] fix: es6 const not support --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6910b51..dde2cbb 100644 --- a/src/index.js +++ b/src/index.js @@ -129,7 +129,7 @@ define(function () { }, // 判断是否为iphone手机的safari浏览器 isSafariBrowser: function () { - const uaLower = ua.toLowerCase(); + var uaLower = ua.toLowerCase(); return (uaLower.indexOf('applewebkit') > -1 && uaLower.indexOf('mobile') > -1 && uaLower.indexOf('safari') > -1 && uaLower.indexOf('linux') === -1 && uaLower.indexOf('android') === -1 && uaLower.indexOf('chrome') === -1 && uaLower.indexOf('ios') === -1 && uaLower.indexOf('browser') === -1);