This commit is contained in:
Rizky 2024-04-01 13:40:39 +07:00
parent 6e5aab9981
commit cb53649e8d
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -48,7 +48,9 @@ export const Root = () => {
base.route.router = router;
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)`);
await new Promise<void>((resolve) => {
fn((exports: any) => {