Moved default sorting-hat value into remote.js
This commit is contained in:
parent
58ed4baff1
commit
00c973e728
|
@ -517,7 +517,7 @@ function connectTunnel() {
|
||||||
|
|
||||||
state.otp = getOtp();
|
state.otp = getOtp();
|
||||||
state.greenlockConf = state.config.greenlock || {};
|
state.greenlockConf = state.config.greenlock || {};
|
||||||
state.sortingHat = state.config.sortingHat || path.resolve(__dirname, '..', 'lib/sorting-hat.js');
|
state.sortingHat = state.config.sortingHat;
|
||||||
|
|
||||||
// TODO sortingHat.print(); ?
|
// TODO sortingHat.print(); ?
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,9 @@ function _connect(state) {
|
||||||
// they can get a promise that will provide feedback about invalid tokens.
|
// they can get a promise that will provide feedback about invalid tokens.
|
||||||
var tokens = [];
|
var tokens = [];
|
||||||
var auth;
|
var auth;
|
||||||
|
if(!state.sortingHat) {
|
||||||
|
state.sortingHat = "./sorting-hat.js";
|
||||||
|
}
|
||||||
if (state.token) {
|
if (state.token) {
|
||||||
tokens.push(state.token);
|
tokens.push(state.token);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue