Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Commit

Permalink
Fixed #13 未能识别某些旧版本android系统 感谢@chaoyuebeyondgit
Browse files Browse the repository at this point in the history
  • Loading branch information
think2011 committed Sep 12, 2015
1 parent 49900cf commit d84ed82
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lrz",
"version": "4.2.1",
"version": "4.2.2",
"homepage": "https://github.com/think2011/localResizeIMG4",
"authors": [
"think2011 <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/lrz.all.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lrz.all.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lrz.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lrz.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lrz",
"version": "4.2.1",
"version": "4.2.2",
"description": "前端本地客户端压缩图片,兼容IOS,Android,PC、自动按需加载文件",
"scripts": {
"test": "node ./node_modules/karma/bin/karma start"
Expand Down
2 changes: 1 addition & 1 deletion src/lrz.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var Promise = require('Promise'),

var UA = (function (userAgent) {
var ISOldIOS = /OS (\d)_.* like Mac OS X/g.exec(userAgent),
isOldAndroid = /Android (\d.*?);/g.exec(userAgent);
isOldAndroid = /Android (\d.*?);/g.exec(userAgent) || /Android\/(\d.*?) /g.exec(userAgent);

// 判断设备是否是IOS7以下
// 判断设备是否是android4.5以下
Expand Down

0 comments on commit d84ed82

Please sign in to comment.