aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emccpre.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/emccpre.js b/emccpre.js
index 2dd4a18..96a9af8 100644
--- a/emccpre.js
+++ b/emccpre.js
@@ -533,8 +533,8 @@ function initPuzzle() {
* <https://developer.mozilla.org/en-US/docs/Web/API/Window/
* devicePixelRatio> (CC0).
*/
- const update_pixel_ratio = () => {
- let dpr = window.devicePixelRatio;
+ var update_pixel_ratio = function() {
+ var dpr = window.devicePixelRatio;
resizable_div.style.width = onscreen_canvas.width / dpr + "px";
matchMedia(`(resolution: ${dpr}dppx)`)
.addEventListener("change", update_pixel_ratio, { once: true })