Skip to content

Commit ac4dfcf

Browse files
committed
Fix wrong variable name on mobile
1 parent cb5e331 commit ac4dfcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/WebGLTemplates/Develop/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
if(isMobile) {
151151
// Define a maximum pixel ratio for mobile to avoid rendering at too high resolutions
152152
const maxPixelRatioMobile = 2.0;
153-
config.devicePixelRatio = Math.min(window.devicePixelRatio, maxDevicePixelRatio);
153+
config.devicePixelRatio = Math.min(window.devicePixelRatio, maxPixelRatioMobile);
154154
}
155155

156156
var canvas = document.querySelector("#unity-canvas");

Assets/WebGLTemplates/Release/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
if(isMobile) {
150150
// Define a maximum pixel ratio for mobile to avoid rendering at too high resolutions
151151
const maxPixelRatioMobile = 2.0;
152-
config.devicePixelRatio = Math.min(window.devicePixelRatio, maxDevicePixelRatio);
152+
config.devicePixelRatio = Math.min(window.devicePixelRatio, maxPixelRatioMobile);
153153
}
154154

155155
var canvas = document.querySelector("#unity-canvas");

0 commit comments

Comments
 (0)