diff --git a/emccpre.js b/emccpre.js index 2dd4a18..96a9af8 100644 --- a/emccpre.js +++ b/emccpre.js @@ -533,8 +533,8 @@ function initPuzzle() { * (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 })