diff --git a/.gitignore b/.gitignore index e737cbb..fb5fafe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ #Docs docs +bigip/* + config.json # Logs diff --git a/app.js b/app.js index c2649da..a7ec6f8 100644 --- a/app.js +++ b/app.js @@ -54,7 +54,7 @@ app.get('/ssh/host/:host?', function (req, res, next) { tabStopWidth: config.terminal.tabStopWidth }, allowreplay: (validator.isBoolean(req.headers.allowreplay + '') ? myutil.parseBool(req.headers.allowreplay) : false), - MRH_Session: validator.isAlphanumeric(req.headers.lastMRH_Session + '') && req.headers.lastMRH_Session || 'none', + MRH_Session: (validator.isAlphanumeric(req.headers.lastMRH_Session + '') ? req.headers.lastMRH_Session : 'none'), serverlog: { client: config.serverlog.client || false, server: config.serverlog.server || false diff --git a/package.json b/package.json index ba6d826..323c264 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,8 @@ }, "standard": { "ignore": [ - "public/webssh2.bundle.js" + "public/webssh2.bundle.js", + "bigip/*" ] } } diff --git a/public/client-min.htm b/public/client-min.htm index bdc8223..38aef92 100644 --- a/public/client-min.htm +++ b/public/client-min.htm @@ -10,11 +10,11 @@
diff --git a/public/webssh2.bundle.js b/public/webssh2.bundle.js index 2bbae3a..ed7522b 100644 --- a/public/webssh2.bundle.js +++ b/public/webssh2.bundle.js @@ -135,7 +135,7 @@ window.addEventListener('resize', resizeScreen, false) function resizeScreen () { term.fit() - socket.emit('resize', {cols: term.cols, rows: term.rows }) + socket.emit('resize', { cols: term.cols, rows: term.rows }) } if (document.location.pathname) { diff --git a/src/client-min.htm b/src/client-min.htm index bdc8223..38aef92 100644 --- a/src/client-min.htm +++ b/src/client-min.htm @@ -10,11 +10,11 @@
diff --git a/src/js/index.js b/src/js/index.js index 2cb6b0b..e9a3283 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -47,7 +47,7 @@ window.addEventListener('resize', resizeScreen, false) function resizeScreen () { term.fit() - socket.emit('resize', {cols: term.cols, rows: term.rows }) + socket.emit('resize', { cols: term.cols, rows: term.rows }) } if (document.location.pathname) {