Skip to content

Commit

Permalink
fix issues starting from other working dirs by changing to script dir…
Browse files Browse the repository at this point in the history
… in node_persistent_admin.js
  • Loading branch information
nbartzokas committed Nov 6, 2017
1 parent e4e5ca8 commit 5a60c15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node_persistent_admin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.chdir(__dirname);
var processArguments = function(){
var argv = process.argv;
for(var i = 2; i < argv.length; i++){
Expand Down Expand Up @@ -681,4 +682,4 @@ var CONNECTING = 0;
var OPEN = 1;
var CLOSING = 2;
var CLOSED = 3;
setInterval(function(){if (wsClient.readyState !== OPEN){wsClient.terminate(); setupWSClient()}}, 10000);
setInterval(function(){if (wsClient.readyState !== OPEN){wsClient.terminate(); setupWSClient()}}, 10000);

0 comments on commit 5a60c15

Please sign in to comment.