diff --git a/static/js/pad2.js b/static/js/pad2.js index fddd9622e..260b3dd09 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -80,7 +80,7 @@ function handshake() resource: resource }); - socket.on('connect', function() + socket.once('connect', function() { var padId = document.URL.substring(document.URL.lastIndexOf("/") + 1);