When I build a project for mobile-web platform, the main.js file which is automatically generated has the following codes.
cc.view.enableAutoFullScreen([
cc.sys.BROWSER_TYPE_BAIDU,
cc.sys.BROWSER_TYPE_WECHAT,
cc.sys.BROWSER_TYPE_MOBILE_QQ,
cc.sys.BROWSER_TYPE_MIUI,
].indexOf(cc.sys.browserType) < 0);
The problem is our project don’t want auto-full-screen mode on the mobile web browser.
I already tried to embed code [cc.view.enableAutoFullScreen(false)] to source file in cocos creator, but it’s not working.
Manually changing the main.js after build steps is not goal.
Can I have any options to automatically set cc.view.enableAutoFullScreen(false) in build steps?