codelint and cross platform improvements
This commit is contained in:
parent
aad3744552
commit
8838150c22
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -10,7 +10,7 @@ var express = require('express'),
|
||||||
io = require('socket.io')(server),
|
io = require('socket.io')(server),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
basicAuth = require('basic-auth'),
|
basicAuth = require('basic-auth'),
|
||||||
ssh = require('ssh2').Client,
|
SSH = require('ssh2').Client,
|
||||||
readConfig = require('read-config'),
|
readConfig = require('read-config'),
|
||||||
config = readConfig(path.join(__dirname, 'config.json')),
|
config = readConfig(path.join(__dirname, 'config.json')),
|
||||||
myError = ' - ',
|
myError = ' - ',
|
||||||
|
@ -68,7 +68,7 @@ app.use(express.static(path.join(__dirname, 'public'))).use(function (req, res,
|
||||||
}).use('/style', express.static(path.join(__dirname, 'public'))).use('/src', express.static(path.join(__dirname, 'node_modules', 'xterm', 'dist'))).use('/addons', express.static(path.join(__dirname, 'node_modules', 'xterm', 'dist', 'addons')))
|
}).use('/style', express.static(path.join(__dirname, 'public'))).use('/src', express.static(path.join(__dirname, 'node_modules', 'xterm', 'dist'))).use('/addons', express.static(path.join(__dirname, 'node_modules', 'xterm', 'dist', 'addons')))
|
||||||
|
|
||||||
io.on('connection', function (socket) {
|
io.on('connection', function (socket) {
|
||||||
var conn = new ssh()
|
var conn = new SSH()
|
||||||
socket.on('geometry', function (cols, rows) {
|
socket.on('geometry', function (cols, rows) {
|
||||||
termCols = cols
|
termCols = cols
|
||||||
termRows = rows
|
termRows = rows
|
||||||
|
|
Loading…
Reference in a new issue