diff --git a/.index.js.swp b/.index.js.swp new file mode 100644 index 0000000..4cab11b Binary files /dev/null and b/.index.js.swp differ diff --git a/index.js b/index.js index c1bc14f..fa94c0a 100644 --- a/index.js +++ b/index.js @@ -579,7 +579,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e callServerError(500, "GreenRhombus/" + version, ex); } } - } else if ((href == "/greenrhombus-config.json" || (os.platform() == "win32" && href.toLowerCase() == "/greenrhombus-config.json")) && path.normalize(__dirname + "/../../..") == process.cwd()) { + } else if ((href == "/greenrhombus-config.json" || (os.platform() == "win32" && href.toLowerCase() == "/greenrhombus-config.json")) && path.normalize(__dirname + "/../../..") == process.cwd() || (href == "/greenrhombus-scriptexts.json" || (os.platform() == "win32" && href.toLowerCase() == "/greenrhombus-scriptexts.json")) && path.normalize(__dirname + "/../../..") == process.cwd()) { if (!callServerError) { res.writeHead(200, "OK", { "Content-Type": "application/json",