From cd40b624b3e821c8fbd47edde8faf84da006fec5 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 9 Oct 2014 18:30:06 +0000 Subject: [PATCH] Fix inArray test for jQuery Sorry i wrote it in the train :) --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }