Moved default sorting-hat value into remote.js

This commit is contained in:
John Shaver 2018-06-13 14:00:08 -07:00
parent 58ed4baff1
commit 00c973e728
2 changed files with 4 additions and 1 deletions

View File

@ -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(); ?

View File

@ -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);
} }