Fixed comparison with bool

This commit is contained in:
Nathanaël Lécaudé 2016-05-02 16:01:32 -04:00
parent 593c492ee8
commit bd3607dec9

View File

@ -106,7 +106,7 @@ module.exports = function(RED) {
} }
node.on('input', function(msg) { node.on('input', function(msg) {
if (msg.advertising == false) { if (msg.advertising === false) {
if (eddyBeacon) { if (eddyBeacon) {
try { try {
eddystoneBeacon.stop(); eddystoneBeacon.stop();
@ -117,7 +117,7 @@ module.exports = function(RED) {
return; return;
} }
} }
if (msg.advertising == true) { if (msg.advertising === true) {
if (node.mode === "url") { if (node.mode === "url") {
try { try {
eddystoneBeacon.advertiseUrl(node.url, node.options); eddystoneBeacon.advertiseUrl(node.url, node.options);