mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(cloudcmd) add ability to disable console with "--no-console" (#65)
This commit is contained in:
parent
6b26b26115
commit
c3c008ff72
12 changed files with 79 additions and 14 deletions
|
|
@ -333,13 +333,11 @@ var CloudCmd, Util, DOM;
|
|||
break;
|
||||
|
||||
case Key.TRA:
|
||||
DOM.Images.show.load('top');
|
||||
CloudCmd.Konsole.show();
|
||||
event.preventDefault();
|
||||
break;
|
||||
|
||||
case KEY.BRACKET_CLOSE:
|
||||
DOM.Images.show.load('top');
|
||||
CloudCmd.Konsole.show();
|
||||
event.preventDefault();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,15 @@
|
|||
Util.time(Name + ' load');
|
||||
}
|
||||
|
||||
init();
|
||||
DOM.Files.get('config', function(error, config) {
|
||||
if (error)
|
||||
return Dialog.alert(TITLE, error);
|
||||
|
||||
if (!config.console)
|
||||
return;
|
||||
|
||||
init();
|
||||
});
|
||||
}
|
||||
|
||||
})(CloudCmd, Util, DOM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue