Update app.js

This commit is contained in:
Namhyeon Go 2020-07-03 20:11:13 +09:00
parent b27f7c71cf
commit aa1ce2ea48

18
app.js
View File

@ -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);