Couple of typos in DigiSpark node and swearfilter node

This commit is contained in:
Dave C-J 2013-11-10 20:58:14 +00:00
parent 793fd3c7fd
commit 4375b32b84
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
* limitations under the License.
**/
var RED = require("../../red/red");
var RED = require(process.env.NODE_RED_HOME+"/red/red");
var badwords = require('badwords');
function BadwordsNode(n) {

View File

@ -63,6 +63,7 @@ function DigiRGBNode(n) {
}
this.on('close', function() {
if (device) { device.close(); });
if (device) { device.close(); }
});
}
RED.nodes.registerType("digiRGB",DigiRGBNode);