Add support for SVR.JS running on Deno

This commit is contained in:
Dorian Niemiec 2024-10-18 20:11:38 +02:00
parent 73bd63305b
commit da7beddc61

View file

@ -276,7 +276,7 @@ if (href == "/") {
var isValid = true;
if (!parsedJsonData.version || !parsedJsonData.runtime || !parsedJsonData.runtimeVersion || !parsedJsonData.mods || typeof parsedJsonData.version != "string" || typeof parsedJsonData.runtime != "string" || typeof parsedJsonData.runtimeVersion != "string" || !Array.isArray(parsedJsonData.mods)) {
isValid = false;
} else if (["Node.js", "Bun"].indexOf(parsedJsonData.runtime) == -1) {
} else if (["Node.js", "Bun", "Deno"].indexOf(parsedJsonData.runtime) == -1) {
isValid = false;
} else {
parsedJsonData.mods.every(function (element) {