mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(konsole) load: es2015-ify
This commit is contained in:
parent
9b14d0b4a6
commit
8bc07ca700
1 changed files with 9 additions and 10 deletions
|
|
@ -106,17 +106,16 @@ function ConsoleProto() {
|
|||
};
|
||||
|
||||
function load(callback) {
|
||||
var prefix = getPrefix(),
|
||||
url = prefix + '/console.js';
|
||||
const prefix = getPrefix();
|
||||
const url = prefix + '/console.js';
|
||||
|
||||
DOM.load.js(url, function(error) {
|
||||
if (error) {
|
||||
Dialog.alert(TITLE, error.message);
|
||||
} else {
|
||||
Loaded = true;
|
||||
Util.timeEnd(Name + ' load');
|
||||
exec(callback);
|
||||
}
|
||||
DOM.load.js(url, (error) => {
|
||||
if (error)
|
||||
return Dialog.alert(TITLE, error.message);
|
||||
|
||||
Loaded = true;
|
||||
Util.timeEnd(Name + ' load');
|
||||
exec(callback);
|
||||
});
|
||||
|
||||
Util.time(Name + ' load');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue