mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
IMAP node should not try to load settings file directly
This commit is contained in:
parent
3a52397744
commit
510fab7b8f
@ -20,7 +20,7 @@ var util = require('util');
|
|||||||
var oldmail = {};
|
var oldmail = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var emailkey = require("../../settings").email || require("../../../emailkeys.js");
|
var emailkey = RED.settings.email || require("../../../emailkeys.js");
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
throw new Error("Failed to load Email credentials");
|
throw new Error("Failed to load Email credentials");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user