From 4a4d5192d61ba41b9948bcf94bc9c3b257eb19f8 Mon Sep 17 00:00:00 2001 From: WanderWang Date: Mon, 28 Jul 2014 18:31:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0PC/Mobile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加PC/Mobile --- src/egret/context/MainContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egret/context/MainContext.ts b/src/egret/context/MainContext.ts index caf616c831..fbdf272bf2 100644 --- a/src/egret/context/MainContext.ts +++ b/src/egret/context/MainContext.ts @@ -185,7 +185,7 @@ var testDeviceType = function () { return true } var ua = navigator.userAgent.toLowerCase(); - return (this.ua.indexOf('mobile') != -1 || ua.indexOf('android') != -1); + return (ua.indexOf('mobile') != -1 || ua.indexOf('android') != -1); } egret.MainContext.instance = new egret.MainContext();