mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
Fix #2109 - Allow inline JSON config attribute in PyEditor
This commit is contained in:
committed by
GitHub
parent
461ae38763
commit
7b8ef7ebe2
@@ -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),
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user