Skip to content

Commit

Permalink
fix: es6 const not support
Browse files Browse the repository at this point in the history
  • Loading branch information
heqianqian01 authored and harttle committed Oct 20, 2020
1 parent 15c057b commit a0e946e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a0e946e

Please sign in to comment.