From 1595b3e904dfd5237a2ee3835cb51514f09d2c5d Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 8 Oct 2016 01:15:47 +0100 Subject: [PATCH] Will print the port only if it is custom --- assets/js/site.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/js/site.js b/assets/js/site.js index b1d9e37..a257d34 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -197,6 +197,14 @@ function validateBootTime(bootTime, socket) { } } +function printPort(port) { + if(port == undefined || port == 25565) { + return ""; + } else { + return ":" + port; + } +} + $(document).ready(function() { var socket = io.connect({ reconnect: true, @@ -347,7 +355,7 @@ $(document).ready(function() { \
\

' + info.name + ' ' + info.type + '

\ - ' + info.ip + '\ + ' + info.ip + printPort(info.port) + '\
\ Waiting\
\