We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e8a9d commit e8064f5Copy full SHA for e8064f5
cocos2d/core/platform/CCEGLView.js
@@ -61,6 +61,9 @@ cc.__BrowserGetter = {
61
if(window.navigator.userAgent.indexOf("OS 8_1_") > -1) //this mistake like MIUI, so use of MIUI treatment method
62
cc.__BrowserGetter.adaptationType = cc.sys.BROWSER_TYPE_MIUI;
63
64
+if(cc.sys.os === cc.sys.OS_IOS) // All browsers are WebView
65
+ cc.__BrowserGetter.adaptationType = cc.sys.BROWSER_TYPE_SAFARI;
66
+
67
switch(cc.__BrowserGetter.adaptationType){
68
case cc.sys.BROWSER_TYPE_SAFARI:
69
cc.__BrowserGetter.meta["minimal-ui"] = "true";
0 commit comments