From da7beddc61f9eae2905567078d63455a9fec053d Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 18 Oct 2024 20:11:38 +0200 Subject: [PATCH] Add support for SVR.JS running on Deno --- backend/serverSideScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/serverSideScript.js b/backend/serverSideScript.js index 89555a1..6837657 100644 --- a/backend/serverSideScript.js +++ b/backend/serverSideScript.js @@ -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) {