Commit 21c73f95 authored by Spencer Williams's avatar Spencer Williams

passing function as constant didn't work

parent 76d557b2
......@@ -24,7 +24,7 @@ const thingyState = {
module.exports = function(RED) {
var noble = require("noble");
const NobleConnectNode = (config) => {
function NobleConnectNode(config) {
RED.nodes.createNode(this, config);
var node = this;
......@@ -258,7 +258,7 @@ module.exports = function(RED) {
// remove listeners since they get added again on deploy
noble.removeAllListeners();
});
};
}
RED.nodes.registerType("noble-connect", NobleConnectNode);
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment