Skip to content

Commit

Permalink
添加PC/Mobile
Browse files Browse the repository at this point in the history
添加PC/Mobile
  • Loading branch information
WanderWang committed Jul 28, 2014
1 parent 396c13f commit 4a4d519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/egret/context/MainContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4a4d519

Please sign in to comment.