From bd3607dec95938b3d3b242ecb417356a030434c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 2 May 2016 16:01:32 -0400 Subject: [PATCH] Fixed comparison with bool --- hardware/physical-web/physical-web.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/physical-web/physical-web.js b/hardware/physical-web/physical-web.js index 20f9d86f..c4fe14c2 100644 --- a/hardware/physical-web/physical-web.js +++ b/hardware/physical-web/physical-web.js @@ -106,7 +106,7 @@ module.exports = function(RED) { } node.on('input', function(msg) { - if (msg.advertising == false) { + if (msg.advertising === false) { if (eddyBeacon) { try { eddystoneBeacon.stop(); @@ -117,7 +117,7 @@ module.exports = function(RED) { return; } } - if (msg.advertising == true) { + if (msg.advertising === true) { if (node.mode === "url") { try { eddystoneBeacon.advertiseUrl(node.url, node.options);