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); }