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();