mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
fix(terminal) when disabled, error occures on second call
This commit is contained in:
parent
e6a882d265
commit
56a359a823
1 changed files with 5 additions and 1 deletions
|
|
@ -21,8 +21,12 @@ let Terminal;
|
|||
const {config} = CloudCmd;
|
||||
|
||||
function TerminalProto() {
|
||||
const noop = () => {};
|
||||
|
||||
if (!config('terminal'))
|
||||
return;
|
||||
return {
|
||||
show: noop
|
||||
};
|
||||
|
||||
Images.show.load('top');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue