Skip to content

Commit a0e946e

Browse files
heqianqian01harttle
authored andcommitted
fix: es6 const not support
1 parent 15c057b commit a0e946e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ define(function () {
129129
},
130130
// 判断是否为iphone手机的safari浏览器
131131
isSafariBrowser: function () {
132-
const uaLower = ua.toLowerCase();
132+
var uaLower = ua.toLowerCase();
133133
return (uaLower.indexOf('applewebkit') > -1 && uaLower.indexOf('mobile') > -1 && uaLower.indexOf('safari') > -1 &&
134134
uaLower.indexOf('linux') === -1 && uaLower.indexOf('android') === -1 && uaLower.indexOf('chrome') === -1 &&
135135
uaLower.indexOf('ios') === -1 && uaLower.indexOf('browser') === -1);

0 commit comments

Comments
 (0)