diff --git a/static/js/pad2.js b/static/js/pad2.js index fddd9622..260b3dd0 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);