From: Luigi Pinca Date: Mon, 27 Jan 2014 11:09:50 +0000 (+0100) Subject: use the proper way to disable the reconnection X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=6f7422d981bcc9e929e55220b8fb7ebe82ffe81f;p=binbsis50.git use the proper way to disable the reconnection --- diff --git a/public/js/app.js b/public/js/app.js index 4606158..40bdf3a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -11,12 +11,12 @@ , pvtmsgto , subscriber = false , roundpoints = 0 - , roomname = window.location.pathname.replace(/\//g, '') + , roomname = location.pathname.replace(/\//g, '') , primus , stopanimation = false , touchplay , urlregex = /(https?:\/\/[\-A-Za-z0-9+&@#\/%?=~_()|!:,.;]*[\-A-Za-z0-9+&@#\/%=~_()|])/ - , uri = window.location.protocol+'//'+window.location.host; // Primus server URI + , uri = location.protocol + '//' + location.host; // Primus server URI var amstrings = [ 'Yes, that\'s the artist. What about the title?' @@ -398,7 +398,7 @@ html += ''+player.points+''; html += ''+player.golds+''+player.silvers+''; html += ''+player.bronzes+''+player.guessed+''; - var meantime = "N/A"; + var meantime = 'N/A'; if (player.guessed !== 0) { meantime = player.totguesstime / player.guessed; meantime = (meantime / 1000).toFixed(1)+' s'; @@ -474,7 +474,7 @@ var html = ''; - html += ''; + html += ''; html += '