diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-21 23:08:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-22 20:07:00 +0200 |
commit | 050644d3560802625132bf01162fac9659bd0f47 (patch) | |
tree | f827520a3d32ea5870e318b92e19dadbdf219c83 /play.js | |
parent | 3ff8a3894a88a96870088a113773380f2f41237f (diff) | |
download | plantagenet-050644d3560802625132bf01162fac9659bd0f47.tar.gz |
Optimize data access.
TODO: sort the locales for simpler tests.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -739,7 +739,7 @@ function build_map() { locale_layout[i] = [] data.locales.forEach((locale, ix) => { - let region = clean_name(locale.region) + let region = locale.region ? clean_name(locale.region) : "" let { x, y, w, h } = locale.box let xc = Math.round(x + w / 2) let yc = Math.round(y + h / 2) |