Fixed py-editor offline use case (#2043)

This commit is contained in:
Andrea Giammarchi
2024-05-03 12:23:57 +02:00
committed by GitHub
parent 1a05ea5fd2
commit d1d1c5740f
3 changed files with 5 additions and 3 deletions

View File

@@ -42,6 +42,8 @@ async function execute({ currentTarget }) {
? await import(/* webpackIgnore: true */ "../3rd-party/toml.js")
: JSON;
details.config = parse(await fetch(config).then((r) => r.text()));
const { interpreter } = details.config;
if (interpreter) details.version = interpreter;
}
const xworker = XWorker.call(new Hook(null, hooks), srcLink, details);