wip fix
This commit is contained in:
parent
cb53649e8d
commit
cc2fc2e77c
File diff suppressed because one or more lines are too long
|
|
@ -50,6 +50,10 @@ export const Root = () => {
|
|||
|
||||
let url = `${w._prasi.basepath}_prasi/code/index.js`;
|
||||
if (url.startsWith("//")) url = url.substring(1);
|
||||
const cur = new URL(location.href);
|
||||
if (url.startsWith("/")) {
|
||||
url = `${cur.protocol}//${cur.host}${url}`;
|
||||
}
|
||||
|
||||
const fn = new Function("callback", `import("${url}").then(callback)`);
|
||||
await new Promise<void>((resolve) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue