From b0ae79b6ff6cbfa17d9b7f33c913b5786597b918 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 9 Oct 2014 18:35:40 +0000 Subject: [PATCH] Ahem, fix really --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index fcbc731..f772b01 100644 --- a/js/script.js +++ b/js/script.js @@ -157,7 +157,7 @@ function fetchInitialPeerList(jsondata) { fn = jsondata['contacts'][val]; peerLabel = fn; } - if ($.inArray(peerLabel, bufferedContacts) !== true) { + if ($.inArray(peerLabel, bufferedContacts) == -1) { peerListBuf += '
  • ' + peerLabel + '
  • '; bufferedContacts.push(peerLabel); }