mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update app.js
This commit is contained in:
parent
b27f7c71cf
commit
aa1ce2ea48
18
app.js
18
app.js
|
@ -38,15 +38,15 @@ var messages = [];
|
|||
var console = {
|
||||
log: function(msg, status) {
|
||||
if(typeof(window) !== 'undefined') {
|
||||
if(typeof(window.jQuery) !== 'undefined') {
|
||||
window.jQuery.toast({
|
||||
heading: "Information",
|
||||
text: msg,
|
||||
icon: "info"
|
||||
});
|
||||
} else {
|
||||
messages.push(msg);
|
||||
}
|
||||
if(typeof(window.jQuery) !== 'undefined') {
|
||||
window.jQuery.toast({
|
||||
heading: "Information",
|
||||
text: msg,
|
||||
icon: "info"
|
||||
});
|
||||
} else {
|
||||
messages.push(msg);
|
||||
}
|
||||
} else if(typeof(WScript) !== 'undefined') {
|
||||
WScript.echo(msg);
|
||||
WScript.quit(status);
|
||||
|
|
Loading…
Reference in New Issue
Block a user