From ec3b7d263ec0f554b4b43356df5de4545408502d Mon Sep 17 00:00:00 2001 From: Stormspirit Date: Wed, 9 Sep 2015 00:19:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=8B=E5=89=8D=E4=BC=A0=E9=94=99=E4=BA=86?= =?UTF-8?q?=EF=BC=8C=E9=87=8D=E6=96=B0=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/browser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/browser.js b/src/core/browser.js index c09ab44..f6227b6 100644 --- a/src/core/browser.js +++ b/src/core/browser.js @@ -24,13 +24,13 @@ define(function() { * @description 获取浏览器所在系统,"Win"->Windows;"Mac"->Mac;"Lux"->Linux * @type {String} */ - platform: (function() { + platform: (function(navigator) { var _p = { "win32": "Win", - "MacIntel": "Mac" + "macintel": "Mac" }; return _p[navigator.platform.toLowerCase()] || "Lux"; - }), + })(navigator), /** * 猎豹,区分两种不同内核