diff --git a/js/script.js b/js/script.js index b955aea..fcbc731 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)) { + if ($.inArray(peerLabel, bufferedContacts) !== true) { peerListBuf += '
  • ' + peerLabel + '
  • '; bufferedContacts.push(peerLabel); }