mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fix what3words jslint
This commit is contained in:
parent
340d54e0ea
commit
5e22eb2904
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-what3words",
|
"name" : "node-red-node-what3words",
|
||||||
"version" : "0.0.1",
|
"version" : "0.0.2",
|
||||||
"description" : "A Node-RED node to convert locations to/from what3words",
|
"description" : "A Node-RED node to convert locations to/from what3words",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"geo.what3words" : "0.0.2"
|
"geo.what3words" : "0.0.2"
|
||||||
|
@ -18,7 +18,7 @@ module.exports = function(RED) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
var What3Words = require('geo.what3words');
|
var What3Words = require('geo.what3words');
|
||||||
|
|
||||||
function what3wordsNode(n) {
|
var what3wordsNode = function(n) {
|
||||||
RED.nodes.createNode(this, n);
|
RED.nodes.createNode(this, n);
|
||||||
this.lang = n.lang || "en";
|
this.lang = n.lang || "en";
|
||||||
var credentials = RED.nodes.getCredentials(n.id);
|
var credentials = RED.nodes.getCredentials(n.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user