From aaf7e5eb11acbb6cabcb31330604e0d45e7d0eca Mon Sep 17 00:00:00 2001 From: bofeng-song Date: Wed, 7 Jun 2023 15:23:45 +0800 Subject: [PATCH] remove uneeded code & fix the issue of iOS not displaying in full screen. (#15352) --- templates/alipay-mini-game/game.ejs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/templates/alipay-mini-game/game.ejs b/templates/alipay-mini-game/game.ejs index 17b1919c4c..6b1cf42d76 100644 --- a/templates/alipay-mini-game/game.ejs +++ b/templates/alipay-mini-game/game.ejs @@ -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,