Skip to content

Commit 4a4d519

Browse files
author
WanderWang
committed
添加PC/Mobile
添加PC/Mobile
1 parent 396c13f commit 4a4d519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/egret/context/MainContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ var testDeviceType = function () {
185185
return true
186186
}
187187
var ua = navigator.userAgent.toLowerCase();
188-
return (this.ua.indexOf('mobile') != -1 || ua.indexOf('android') != -1);
188+
return (ua.indexOf('mobile') != -1 || ua.indexOf('android') != -1);
189189
}
190190

191191
egret.MainContext.instance = new egret.MainContext();

0 commit comments

Comments
 (0)