wip fix
This commit is contained in:
parent
86be750de2
commit
0cdeaa1c15
File diff suppressed because one or more lines are too long
|
|
@ -48,9 +48,10 @@ export const Root = () => {
|
||||||
base.route.router = router;
|
base.route.router = router;
|
||||||
base.route.pages = pages;
|
base.route.pages = pages;
|
||||||
|
|
||||||
let url = `${w._prasi.basepath}_prasi/code/index.js`;
|
const basepath = w._prasi.basepath;
|
||||||
if (url.startsWith("//")) url = url.substring(1);
|
let url = `${
|
||||||
if (!url.startsWith("/")) url = `/${url}`;
|
basepath.endsWith("/") ? basepath : `${basepath}/`
|
||||||
|
}_prasi/code/index.js`;
|
||||||
|
|
||||||
const cur = new URL(location.href);
|
const cur = new URL(location.href);
|
||||||
if (url.startsWith("/")) {
|
if (url.startsWith("/")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue