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
a3e407b3e0
commit
04aef97d64
10
app.js
10
app.js
|
@ -228,9 +228,15 @@ function require(FN) {
|
||||||
console.error("PARSE ERROR!", e.number + ",", e.description + ",", "FN=" + FN);
|
console.error("PARSE ERROR!", e.number + ",", e.description + ",", "FN=" + FN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// print VERSIONINFO
|
// print VERSIONINFO and AUTHOR
|
||||||
if (typeof(cache[FN]) === "object") {
|
if (typeof(cache[FN]) === "object") {
|
||||||
if ("VERSIONINFO" in cache[FN]) console.log(cache[FN].VERSIONINFO);
|
if ("VERSIONINFO" in cache[FN]) {
|
||||||
|
if ("AUTHOR" in cache[FN]) {
|
||||||
|
console.log(cache[FN].VERSIONINFO + " by " + cache[FN].AUTHOR);
|
||||||
|
} else {
|
||||||
|
console.log(cache[FN].VERSIONINFO);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cache[FN];
|
return cache[FN];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user