wip fix
This commit is contained in:
parent
6e5aab9981
commit
cb53649e8d
File diff suppressed because one or more lines are too long
|
|
@ -48,7 +48,9 @@ export const Root = () => {
|
||||||
base.route.router = router;
|
base.route.router = router;
|
||||||
base.route.pages = pages;
|
base.route.pages = pages;
|
||||||
|
|
||||||
const url = `${w._prasi.basepath}_prasi/code/index.js`;
|
let url = `${w._prasi.basepath}_prasi/code/index.js`;
|
||||||
|
if (url.startsWith("//")) url = url.substring(1);
|
||||||
|
|
||||||
const fn = new Function("callback", `import("${url}").then(callback)`);
|
const fn = new Function("callback", `import("${url}").then(callback)`);
|
||||||
await new Promise<void>((resolve) => {
|
await new Promise<void>((resolve) => {
|
||||||
fn((exports: any) => {
|
fn((exports: any) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue