diff --git a/modules/ui/options.js b/modules/ui/options.js index 8c9381f7..fc3f2b41 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -861,7 +861,7 @@ function applyStoredOptions() { if (localStorage.getItem("regions")) changeStatesNumber(localStorage.getItem("regions")); if (localStorage.getItem("uiSize")) changeUIsize(localStorage.getItem("uiSize")); - else changeUIsize(Math.max(Math.min(rn(svgWidth / 1024, 1), 3), 1)); + else changeUIsize(Math.max(Math.min(rn(mapWidthInput.value / 1024, 1), 3), 1)); } // randomize options if randomization is allowed (not locked)