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) {
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);