aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-map.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-06-30 11:19:19 +0200
committerKristian Lyngstol <kly@kly.no>2016-06-30 11:19:19 +0200
commit59c0b8ac688149333d6e6fb4139bf97f810bc84d (patch)
tree8e70ed4a66ac32af55f132c2e0bc38c1b14fd945 /web/js/nms-map.js
parent2e5ae67caa93a2652ea8e24e45126075c569e0cc (diff)
Tweak various front-end items
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++;