mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-19 15:20:56 +00:00
Update app.js
This commit is contained in:
parent
fab664d524
commit
784fba3f9c
5
app.js
5
app.js
|
@ -32,7 +32,6 @@
|
||||||
// The appname argument causes <appname>.js to be loaded. The interface returned
|
// The appname argument causes <appname>.js to be loaded. The interface returned
|
||||||
// must define main = function(args) {}, which is called once the module is
|
// must define main = function(args) {}, which is called once the module is
|
||||||
// loaded.
|
// loaded.
|
||||||
|
|
||||||
var exit = function(status) {
|
var exit = function(status) {
|
||||||
if (typeof(WScript) !== "undefined") {
|
if (typeof(WScript) !== "undefined") {
|
||||||
WScript.quit(status);
|
WScript.quit(status);
|
||||||
|
@ -72,7 +71,7 @@ var console = {
|
||||||
if (typeof(CreateObject) !== "function") {
|
if (typeof(CreateObject) !== "function") {
|
||||||
var CreateObject = function(className) {
|
var CreateObject = function(className) {
|
||||||
return new ActiveXObject(className);
|
return new ActiveXObject(className);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(GetObject) !== "function") {
|
if (typeof(GetObject) !== "function") {
|
||||||
|
@ -86,7 +85,7 @@ if(typeof(GetObject) !== "function") {
|
||||||
} else {
|
} else {
|
||||||
console.log("Not supported: " + pathName);
|
console.log("Not supported: " + pathName);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function require(FN) {
|
function require(FN) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user