Make standalone mode the default

This commit is contained in:
Joseph Garrone
2021-03-22 23:34:07 +01:00
parent fb5975e4f1
commit 17b24d14ed
4 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@ export type Mode = {
type: "standalone";
urlPathname: string;
} | {
type: "static fetched from app";
type: "external assets";
urlPathname: string;
urlOrigin: string;
}
@ -76,7 +76,7 @@ export function generateFtlFilesCodeFactory(
}
switch (mode.type) {
case "static fetched from app":
case "external assets":
$(element).attr(
attrName,
href.replace(/^\//, `${mode.urlOrigin}/`)