mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(config) rm Util
This commit is contained in:
parent
395b4ab51d
commit
015ae51b19
1 changed files with 2 additions and 4 deletions
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
password = require(DIR_SERVER + 'password'),
|
||||
exit = require(DIR_SERVER + 'exit'),
|
||||
Util = require(DIR_LIB + 'util'),
|
||||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
|
||||
pipe = require('pipe-io'),
|
||||
|
|
@ -93,10 +92,9 @@
|
|||
socket.emit('config', config);
|
||||
|
||||
socket.on('message', function(json) {
|
||||
var data,
|
||||
is = Util.type.object(json);
|
||||
var data;
|
||||
|
||||
if (!is) {
|
||||
if (typeof json !== 'object') {
|
||||
socket.emit('err', 'Error: Wrong data type!');
|
||||
} else {
|
||||
cryptoPass(json);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue