Update app.js

This commit is contained in:
Namhyeon Go 2022-09-27 17:54:47 +09:00 committed by GitHub
parent a3e407b3e0
commit 04aef97d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
app.js
View File

@ -228,9 +228,15 @@ function require(FN) {
console.error("PARSE ERROR!", e.number + ",", e.description + ",", "FN=" + FN);
}
// print VERSIONINFO
// print VERSIONINFO and AUTHOR
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];