From 726d38b442dc6b65ef62d0e5914bb32dd2faf7a6 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Feb 2017 15:30:48 +0200 Subject: [PATCH] chore(operation) CloudCmd.config -> config --- client/operation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/operation.js b/client/operation.js index 75f72e7f..aeb82c23 100644 --- a/client/operation.js +++ b/client/operation.js @@ -19,7 +19,7 @@ const RESTful = require('./rest'); function OperationProto(operation, data) { const Name = 'Operation'; const TITLE = CloudCmd.TITLE; - const config = CloudCmd.config; + const {config} = CloudCmd; const {Dialog, Images} = DOM; let Loaded; @@ -43,7 +43,7 @@ function OperationProto(operation, data) { exec.series([ DOM.loadSocket, (callback) => { - if (CloudCmd.config('progress')) + if (config('progress')) load((callback) => { create(CloudCmd.PREFIX, callback); }); @@ -59,7 +59,7 @@ function OperationProto(operation, data) { } function authCheck(spawn, ok) { - if (!CloudCmd.config('auth')) + if (!config('auth')) return ok(); spawn.on('accept', ok);