fix(terminal) when disabled, error occures on second call

This commit is contained in:
coderaiser 2017-06-21 13:55:26 +03:00
parent e6a882d265
commit 56a359a823

View file

@ -21,8 +21,12 @@ let Terminal;
const {config} = CloudCmd;
function TerminalProto() {
const noop = () => {};
if (!config('terminal'))
return;
return {
show: noop
};
Images.show.load('top');