remove uneeded code & fix the issue of iOS not displaying in full screen. (#15352)

This commit is contained in:
bofeng-song
2023-06-07 15:23:45 +08:00
committed by GitHub
parent 78bb2d3e79
commit aaf7e5eb11
-9
View File
@@ -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,