From 56a359a8237973f8c6a9779329ace783274db369 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 21 Jun 2017 13:55:26 +0300 Subject: [PATCH] fix(terminal) when disabled, error occures on second call --- client/modules/terminal.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/modules/terminal.js b/client/modules/terminal.js index 17fc0a5b..bcea0cf2 100644 --- a/client/modules/terminal.js +++ b/client/modules/terminal.js @@ -21,8 +21,12 @@ let Terminal; const {config} = CloudCmd; function TerminalProto() { + const noop = () => {}; + if (!config('terminal')) - return; + return { + show: noop + }; Images.show.load('top');