diff --git a/index.html b/index.html index e2719dd..a3b536e 100644 --- a/index.html +++ b/index.html @@ -29205,11 +29205,11 @@ // If connected with Backup Supernode, request it to sync data. const closestSuList = await readAllDB("myClosestSupernodes"); - if (`${WS}://${closestSuList[0].ip}/`!==websocket.url) { - const switchMyWS = new backupSupernodesWebSocketObject(); - const connectedWSServerFloId = await switchMyWS.getFloIdFromWSUrl( + const switchMyWS = new backupSupernodesWebSocketObject(); + const connectedWSServerFloId = await switchMyWS.getFloIdFromWSUrl( websocket.url - ); + ); + if (connectedWSServerFloId!==closestSuList[0].trader_flo_address) { const RM_RPC = new localbitcoinplusplus.rpc(); let server_response = await RM_RPC.send_rpc.call(