mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 08:55:14 +00:00
Update app.js
This commit is contained in:
parent
7b1353998e
commit
6f7d748579
3
app.js
3
app.js
|
@ -34,7 +34,7 @@
|
||||||
// loaded.
|
// loaded.
|
||||||
|
|
||||||
var exit = function(status) {
|
var exit = function(status) {
|
||||||
console.warn("Exit caused by status " + status);
|
console.error("Exit caused by status " + status);
|
||||||
|
|
||||||
if (typeof(WScript) !== "undefined") {
|
if (typeof(WScript) !== "undefined") {
|
||||||
WScript.quit(status);
|
WScript.quit(status);
|
||||||
|
@ -281,7 +281,6 @@ function initializeWindow(name, args, w, h) {
|
||||||
if (app.main) {
|
if (app.main) {
|
||||||
var exitStatus = app.main.call(app, args);
|
var exitStatus = app.main.call(app, args);
|
||||||
if (exitStatus > 0) {
|
if (exitStatus > 0) {
|
||||||
console.error("error");
|
|
||||||
exit(exitStatus);
|
exit(exitStatus);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user