From 3af345001a18f605d66f8297eb3a3bc89247e2c3 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 12 Sep 2019 01:27:03 +0300 Subject: [PATCH] v1.0.21 --- modules/ui/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)