diff --git a/python_aternos/atjsparse.py b/python_aternos/atjsparse.py index 88bd065..c175361 100644 --- a/python_aternos/atjsparse.py +++ b/python_aternos/atjsparse.py @@ -142,6 +142,7 @@ class Js2PyInterpreter(Interpreter): window.encodeURIComponent = function(_s){ }; window.document = { }; document.doctype = { }; + document.currentScript = { }; document.getElementById = function(_s){ }; ''') diff --git a/python_aternos/data/package-lock.json b/python_aternos/data/package-lock.json index f48e523..5ebe518 100644 --- a/python_aternos/data/package-lock.json +++ b/python_aternos/data/package-lock.json @@ -4,7 +4,6 @@ "requires": true, "packages": { "": { - "name": "data", "dependencies": { "vm2": "^3.9.13" } diff --git a/python_aternos/data/server.js b/python_aternos/data/server.js index f33af11..4025e7d 100644 --- a/python_aternos/data/server.js +++ b/python_aternos/data/server.js @@ -17,6 +17,7 @@ const vm = new VM({ document: { getElementById: (_i) => {}, doctype: {}, + currentScript: {}, }, }, })