From 5b773a2695f17ac6d2116971e998f7b481ea8330 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Tue, 3 Mar 2020 13:18:01 +0100 Subject: [PATCH] [fix] JS equals operator --- www/js/controllers/blockchain-controllers.js | 2 +- www/js/controllers/network-controllers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/controllers/blockchain-controllers.js b/www/js/controllers/blockchain-controllers.js index 65f3073fd..7db595695 100644 --- a/www/js/controllers/blockchain-controllers.js +++ b/www/js/controllers/blockchain-controllers.js @@ -135,7 +135,7 @@ function BlockLookupController($scope, $timeout, $focus, $filter, $state, $ancho useTor: useTor }; var serverParts = state.stateParams.server.split(':'); - if (serverParts.length == 2) { + if (serverParts.length === 2) { node.host = serverParts[0]; node.port = serverParts[1]; } diff --git a/www/js/controllers/network-controllers.js b/www/js/controllers/network-controllers.js index 6db236315..35ca9fda8 100644 --- a/www/js/controllers/network-controllers.js +++ b/www/js/controllers/network-controllers.js @@ -589,7 +589,7 @@ function PeerViewController($scope, $q, $window, $state, UIUtils, csWot, BMA) { var peer = new Peer(json); return (peer.getEndpoints('BASIC_MERKLED_API') || []).reduce(function(res, ep) { var bma = BMA.node.parseEndPoint(ep); - if((bma.dns == node.host || bma.ipv4 == node.host || bma.ipv6 == node.host) && ( + if((bma.dns === node.host || bma.ipv4 === node.host || bma.ipv6 === node.host) && ( bma.port == node.port)) { peer.bma = bma; return res.concat(peer); -- GitLab