From 576617e18e43c4a832dda4280c0fe535aad21843 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Fri, 1 Feb 2019 11:39:08 +1100 Subject: [PATCH] call class method using "this" in loki_snode_api --- js/modules/loki_snode_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modules/loki_snode_api.js b/js/modules/loki_snode_api.js index 50efbdd4b..0a6265334 100644 --- a/js/modules/loki_snode_api.js +++ b/js/modules/loki_snode_api.js @@ -92,7 +92,7 @@ class LokiSnodeAPI { this.ourSwarmNodes = {}; // Try refresh our swarm list once const ourKey = window.textsecure.storage.user.getNumber(); - const nodeAddresses = await window.LokiSnodeAPI.getSwarmNodes(ourKey); + const nodeAddresses = await this.getSwarmNodes(ourKey); if (!nodeAddresses || nodeAddresses.length === 0) { throw Error('Could not load our swarm'); }