🐛 fix(subscribe): Update subscription domain placeholder to include examples; improve site name retrieval in global store

This commit is contained in:
web@ppanel
2025-02-23 13:25:01 +07:00
parent 715d0113ca
commit c65a44c2c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ export const useGlobalStore = create<GlobalStore>((set, get) => ({
});
},
getAppSubLink: (type: string, url: string) => {
const name = get().common.site.site_name || '';
const name = get().common?.site?.site_name || '';
switch (type) {
case 'Clash':
return `clash://install-config?url=${url}&name=${name}`;