diff --git a/src/index.template.ejs b/src/index.template.ejs index 22b2abc..5fbc28b 100644 --- a/src/index.template.ejs +++ b/src/index.template.ejs @@ -13,6 +13,6 @@ <%= htmlWebpackPlugin.options.title %> -
+
diff --git a/src/store/app.ts b/src/store/app.ts index 4c7a796..d1daeeb 100644 --- a/src/store/app.ts +++ b/src/store/app.ts @@ -160,7 +160,7 @@ export function updateCollapsibleIsOpen( } const defaultClashAPIConfig = { - baseURL: 'http://127.0.0.1:9090', + baseURL: document.getElementById('app')?.getAttribute('data-base-url') ?? 'http://127.0.0.1:9090', secret: '', addedAt: 0, };