From 68c1932b7b2415c1d8a69d13351563b3ef084462 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Wed, 3 Jul 2019 12:39:21 +1000 Subject: [PATCH] Little better arguments --- js/modules/loki_snode_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/modules/loki_snode_api.js b/js/modules/loki_snode_api.js index 37175f37e..b31c5d170 100644 --- a/js/modules/loki_snode_api.js +++ b/js/modules/loki_snode_api.js @@ -76,7 +76,7 @@ class LokiSnodeAPI { async getRandomSnodeAddress() { /* resolve random snode */ if (this.randomSnodePool.length === 0) { - await this.initialiseRandomPool([...window.seedNodeList]); + await this.initialiseRandomPool(); } if (this.randomSnodePool.length === 0) { throw new window.textsecure.SeedNodeError('Invalid seed node response'); @@ -86,7 +86,7 @@ class LokiSnodeAPI { ]; } - async initialiseRandomPool(seedNodes) { + async initialiseRandomPool(seedNodes = [...window.seedNodeList]) { const params = { limit: 20, fields: {