mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Fixed comparison with bool
This commit is contained in:
parent
593c492ee8
commit
bd3607dec9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user