mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
remove uneeded code & fix the issue of iOS not displaying in full screen. (#15352)
This commit is contained in:
@@ -9,15 +9,6 @@ require("<%= polyfillsBundleFile %>");
|
||||
window.self = window;
|
||||
require("<%= systemJsBundleFile %>");
|
||||
|
||||
const info = my.getSystemInfoSync();
|
||||
if (info.platform == "iOS") {
|
||||
canvas.width *= info.pixelRatio;
|
||||
canvas.height *= info.pixelRatio;
|
||||
} else {
|
||||
canvas.width = info.screenWidth;
|
||||
canvas.height = info.screenHeight;
|
||||
}
|
||||
|
||||
const importMap = require("<%= importMapFile%>").default;
|
||||
System.warmup({
|
||||
importMap,
|
||||
|
||||
Reference in New Issue
Block a user