wip fix vi
This commit is contained in:
parent
32f35b4c63
commit
c2f85a5735
|
|
@ -53,6 +53,7 @@ export const Vi: FC<{
|
||||||
if (pathname.startsWith("http://") || pathname.startsWith("https://"))
|
if (pathname.startsWith("http://") || pathname.startsWith("https://"))
|
||||||
return pathname;
|
return pathname;
|
||||||
|
|
||||||
|
try {
|
||||||
if (["prasi.avolut.com", "localhost"].includes(location.hostname)) {
|
if (["prasi.avolut.com", "localhost"].includes(location.hostname)) {
|
||||||
if (vi.site.api_url) {
|
if (vi.site.api_url) {
|
||||||
if (!vi.site_url) {
|
if (!vi.site_url) {
|
||||||
|
|
@ -69,6 +70,7 @@ export const Vi: FC<{
|
||||||
vi.site_url.pathname = "";
|
vi.site_url.pathname = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
if (vi.site_url) {
|
if (vi.site_url) {
|
||||||
const u = vi.site_url;
|
const u = vi.site_url;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue