Explorar el Código

Merge pull request #188 from jhamit/master

Removed uneccessary global variable in example chat
Michelle Bu hace 11 años
padre
commit
db670bea4a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/chat.html

+ 1 - 1
examples/chat.html

@@ -106,7 +106,7 @@ $(document).ready(function() {
 
   // Connect to a peer
   $('#connect').click(function() {
-    requestedPeer = $('#rid').val();
+    var requestedPeer = $('#rid').val();
     if (!connectedPeers[requestedPeer]) {
       // Create 2 connections, one labelled chat and another labelled file.
       var c = peer.connect(requestedPeer, {