Skip to content

Commit

Permalink
fixing globelContext error
Browse files Browse the repository at this point in the history
  • Loading branch information
readeral committed Sep 2, 2018
1 parent b9ad790 commit 56f5084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/nuimo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ module.exports = function(RED) {
var globalContext = this.context().global;
var node = this;

var activeApp = globalContext.get("activeApp") || "pending";
if (!globalContext.get("activeApp")) {
globalContext.set("activeApp", "pending");
}
var activeApp = globalContext.get("activeApp");
var sensitivity = globalContext.get("sensitivity") || [70, 800];

let Timeout = require('../Timeout');
Expand Down

0 comments on commit 56f5084

Please sign in to comment.