From a17485261bcc89e8c5cf5d7b62c06494c0781a7a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 25 Feb 2019 18:41:55 +0100 Subject: Added onclick listener --- public/scripts/chat.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public') diff --git a/public/scripts/chat.js b/public/scripts/chat.js index d1b6f88..65e1a98 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -401,6 +401,9 @@ function chat() { `); + $(`[data-peer="${peerObj.peer_id}"]`) + .off('click') + .on('click', () => connect(peerObj.peer_id)); } }); $('[data-peer]') -- cgit v1.2.3