wip fix code mode

This commit is contained in:
Rizky 2024-03-12 12:26:36 +07:00
parent 170312c8bb
commit a625702e85
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ export const loadSite = async (p: PG, site: ESite, note: string) => {
p.site = site;
if (!p.script.db && !p.script.api) {
if (p.site.code.mode === "old") {
if (p.site.code.mode === "old" && !location.pathname.startsWith('/ed/')) {
await viLoadLegacy({
mode: p.mode,
site: {