Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wupengFEX committed Feb 28, 2017
1 parent 8cdebdf commit fc2e20a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dom/rect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define(function (require) {
'use strict';

var platform = require('../utils/platform');
var platform = require('../utils/platform').start();

// Save the native object or method.
var docBody = document.body;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(function (require) {
this.isBaidu = true;
} else if (/qqbrowser\/([0-9.]+)/i.test(this._ua())) {
this.isQQ = true;
} else if (/\bversion\/([0-9.]+(?: beta)?)(?: mobile(?:\/[a-z0-9]+)?)? safari\//i.test(this._ua())) {
} else if (!/android/i.test(this._ua()) && /\bversion\/([0-9.]+(?: beta)?)(?: mobile(?:\/[a-z0-9]+)?)? safari\//i.test(this._ua())) {
this.isSafari = true;
} else if (/(?:Chrome|CrMo|CriOS)\/([0-9]{1,2}\.[0-9]\.[0-9]{3,4}\.[0-9]+)/i.test(this._ua())
&& !/samsung/i.test(this._ua())) {
Expand Down

0 comments on commit fc2e20a

Please sign in to comment.