aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-map.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms-map.js')
-rw-r--r--web/js/nms-map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/nms-map.js b/web/js/nms-map.js
index 491916b..f95cde5 100644
--- a/web/js/nms-map.js
+++ b/web/js/nms-map.js
@@ -313,8 +313,8 @@ nmsMap._drawSwitch = function(sw)
this._c.switch.ctx.shadowBlur = 0;
var switchtext = sw;
var textl = switchtext.length;
- if (textl > 10)
- switchtext = switchtext.slice(0,5) + ".." + switchtext.slice(textl-2,textl);
+ if (textl > 12)
+ switchtext = switchtext.slice(0,7) + ".." + switchtext.slice(textl-2,textl);
if (this._lastName[sw] != switchtext) {
nmsMap.stats.textSwitchDraws++;