mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
Update app.js
This commit is contained in:
parent
6ee94fb57a
commit
dfb661bdf9
6
app.js
6
app.js
|
@ -34,13 +34,13 @@
|
||||||
// loaded.
|
// loaded.
|
||||||
|
|
||||||
var exit = function(status) {
|
var exit = function(status) {
|
||||||
console.warn("Exit caused by status " + status);
|
console.warn("Exit caused by status " + status);
|
||||||
|
|
||||||
if (typeof(WScript) !== "undefined") {
|
if (typeof(WScript) !== "undefined") {
|
||||||
WScript.quit(status);
|
WScript.quit(status);
|
||||||
} else if (typeof(window) !== "undefined") {
|
} else if (typeof(window) !== "undefined") {
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var console = {
|
var console = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user