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\
\