diff --git a/public/index.html b/public/index.html index 9a97cf3..42fe989 100644 --- a/public/index.html +++ b/public/index.html @@ -86,10 +86,10 @@

- -
diff --git a/public/main.js b/public/main.js index 9b5d98a..daa43fe 100644 --- a/public/main.js +++ b/public/main.js @@ -26,8 +26,7 @@ var app = new Vue({ // localStorage.setItem('yaswvc-peerId', peer.id); // return peer; // }, - connectToPeer: function() { - let peerId = this.peer.id; + connectToPeer: function(peerId) { this.logMessage(`Connecting to ${peerId}...`); let conn = this.peer.connect(peerId);