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 */
|
||||
if (config.endsWith(".json")) {
|
||||
options = fetch(config).then(getJSON);
|
||||
config = absoluteURL(config);
|
||||
} else if (config.endsWith(".toml")) {
|
||||
options = fetch(config).then(getText).then(parse);
|
||||
config = absoluteURL(config);
|
||||
} else {
|
||||
try {
|
||||
options = JSON.parse(config);
|
||||
|
||||
Reference in New Issue
Block a user