Fix #2109 - Allow inline JSON config attribute in PyEditor (#2110)

Fix #2109 - Allow inline JSON config attribute in PyEditor
This commit is contained in:
Andrea Giammarchi
2024-06-24 17:04:28 +02:00
committed by GitHub
parent 461ae38763
commit 7b8ef7ebe2
10 changed files with 85 additions and 90 deletions

View File

@@ -1,5 +1,5 @@
// PyScript py-terminal plugin
import { TYPES } from "../core.js";
import { TYPES, relative_url } from "../core.js";
import { notify } from "./error.js";
import { customObserver } from "polyscript/exports";
@@ -35,7 +35,7 @@ for (const type of TYPES.keys()) {
document.head.append(
Object.assign(document.createElement("link"), {
rel: "stylesheet",
href: new URL("./xterm.css", import.meta.url),
href: relative_url("./xterm.css", import.meta.url),
}),
);
}