mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24: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 = {
|
var console = {
|
||||||
log: function(msg, status) {
|
log: function(msg, status) {
|
||||||
if(typeof(window) !== 'undefined') {
|
if(typeof(window) !== 'undefined') {
|
||||||
if(typeof(window.jQuery) !== 'undefined') {
|
if(typeof(window.jQuery) !== 'undefined') {
|
||||||
window.jQuery.toast({
|
window.jQuery.toast({
|
||||||
heading: "Information",
|
heading: "Information",
|
||||||
text: msg,
|
text: msg,
|
||||||
icon: "info"
|
icon: "info"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
messages.push(msg);
|
messages.push(msg);
|
||||||
}
|
}
|
||||||
} else if(typeof(WScript) !== 'undefined') {
|
} else if(typeof(WScript) !== 'undefined') {
|
||||||
WScript.echo(msg);
|
WScript.echo(msg);
|
||||||
WScript.quit(status);
|
WScript.quit(status);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user