mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +00:00
updated app.js and relatives
This commit is contained in:
parent
5916494d05
commit
e69d7385b5
16
app.js
16
app.js
|
@ -95,6 +95,22 @@ function require(FN) {
|
||||||
return cache[FN];
|
return cache[FN];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function include(FN) {
|
||||||
|
var FSO = CreateObject("Scripting.FileSystemObject");
|
||||||
|
var T = null;
|
||||||
|
try {
|
||||||
|
var TS = FSO.OpenTextFile(FN, 1);
|
||||||
|
if (TS.AtEndOfStream) return "";
|
||||||
|
T = TS.ReadAll();
|
||||||
|
TS.Close();
|
||||||
|
TS = null;
|
||||||
|
eval(T);
|
||||||
|
} catch (e) {
|
||||||
|
console.error("LOAD ERROR! " + e.number + ", " + e.description + ", FN=" + FN, 1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
// Load script, and call app.main()
|
// Load script, and call app.main()
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
/*
|
||||||
|
* uriloader.js
|
||||||
|
*/
|
||||||
|
|
||||||
return {
|
return {
|
||||||
main: function(args) {
|
main: function(args) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user