mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update webloader.js
This commit is contained in:
parent
8942eea6df
commit
23fb7ddd0d
12
webloader.js
12
webloader.js
|
@ -47,6 +47,18 @@ global.console._echo = function(args, type) {
|
|||
}
|
||||
|
||||
this._messages.push(msg);
|
||||
|
||||
if (params.channel != "default" && this._echoCallback != null) {
|
||||
try {
|
||||
this._echoCallback(params, type);
|
||||
} catch (e) {
|
||||
window.jQuery.toast({
|
||||
heading: "Error",
|
||||
text: e.message,
|
||||
icon: "error"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue
Block a user