Skip to content
Snippets Groups Projects
Commit 5b773a26 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] JS equals operator

parent e59b7135
No related branches found
No related tags found
No related merge requests found
Pipeline #8266 failed
......@@ -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];
}
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment