mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
fix interpreter absoluteURL (#1603)
This commit is contained in:
@@ -15,8 +15,10 @@ export const getRuntime = (id, config) => {
|
|||||||
/* c8 ignore start */
|
/* c8 ignore start */
|
||||||
if (config.endsWith(".json")) {
|
if (config.endsWith(".json")) {
|
||||||
options = fetch(config).then(getJSON);
|
options = fetch(config).then(getJSON);
|
||||||
|
config = absoluteURL(config);
|
||||||
} else if (config.endsWith(".toml")) {
|
} else if (config.endsWith(".toml")) {
|
||||||
options = fetch(config).then(getText).then(parse);
|
options = fetch(config).then(getText).then(parse);
|
||||||
|
config = absoluteURL(config);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
options = JSON.parse(config);
|
options = JSON.parse(config);
|
||||||
|
|||||||
Reference in New Issue
Block a user