Add support for SVR.JS running on Deno
This commit is contained in:
parent
73bd63305b
commit
da7beddc61
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ if (href == "/") {
|
||||||
var isValid = true;
|
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)) {
|
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;
|
isValid = false;
|
||||||
} else if (["Node.js", "Bun"].indexOf(parsedJsonData.runtime) == -1) {
|
} else if (["Node.js", "Bun", "Deno"].indexOf(parsedJsonData.runtime) == -1) {
|
||||||
isValid = false;
|
isValid = false;
|
||||||
} else {
|
} else {
|
||||||
parsedJsonData.mods.every(function (element) {
|
parsedJsonData.mods.every(function (element) {
|
||||||
|
|
Loading…
Reference in a new issue