mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(konsole) when disabled error occures on second call
This commit is contained in:
parent
da8281e387
commit
6ab971d51b
1 changed files with 7 additions and 3 deletions
|
|
@ -12,6 +12,13 @@ const {Dialog} = DOM;
|
|||
CloudCmd.Konsole = ConsoleProto;
|
||||
|
||||
function ConsoleProto() {
|
||||
const noop = () => {};
|
||||
|
||||
if (!CloudCmd.config('console'))
|
||||
return {
|
||||
show: noop
|
||||
};
|
||||
|
||||
const config = CloudCmd.config;
|
||||
|
||||
const Name = 'Konsole';
|
||||
|
|
@ -122,9 +129,6 @@ function ConsoleProto() {
|
|||
Util.time(Name + ' load');
|
||||
}
|
||||
|
||||
if (!CloudCmd.config('console'))
|
||||
return;
|
||||
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue