From 80b8ff8f93a7db0c01e9d5db0c57562ddcc81bc3 Mon Sep 17 00:00:00 2001 From: Jonas Weinz Date: Sun, 24 Mar 2019 18:28:14 +0100 Subject: [PATCH] again a fix --- websocket_connection.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/websocket_connection.js b/websocket_connection.js index f035023..6c8716b 100644 --- a/websocket_connection.js +++ b/websocket_connection.js @@ -293,14 +293,13 @@ class WebsocketConnection for (i = 0; i < n; i++) { var tmp = this.search_container.create_double_button("" + this.friends[i], "-"); - var name = this.friends[i]; tmp[1].addEventListener("click", () => { - this.send_match_request(name); + this.send_match_request("" +this.friends[i]); }); tmp[2].addEventListener("click", () => { - this.send_unfriend_request(name); + this.send_unfriend_request("" +this.friends[i]); }); this.friend_name_divs.push(tmp[0])