edit some things in landing page

This commit is contained in:
2026-08-19 11:31:30 +03:30
parent 313beb13f8
commit 7e76331796
4 changed files with 98 additions and 50 deletions
+17 -5
View File
@@ -39,16 +39,28 @@ export function getLoginAppUrl() {
/** صفحه Login اپ اصلی با فلگ نصب PWA */
export function getLoginInstallPwaUrl() {
try {
const loginUrl = getLoginAppUrl()
const origin = import.meta.client
? new URL(loginUrl, window.location.origin).origin
: new URL(loginUrl).origin
return `${origin}/login?installPwa=true`
return `${getLoginAppOrigin()}/login?installPwa=true`
} catch {
return 'https://app.boursemes.com/login?installPwa=true'
}
}
/** صفحه Login اپ اصلی روی بخش ثبت‌نام */
export function getLoginRegisterUrl() {
try {
return `${getLoginAppOrigin()}/login?register=true`
} catch {
return 'https://app.boursemes.com/login?register=true'
}
}
function getLoginAppOrigin() {
const loginUrl = getLoginAppUrl()
return import.meta.client
? new URL(loginUrl, window.location.origin).origin
: new URL(loginUrl).origin
}
/** boursecu-only branch */
export function isBoursecuProject() {
return true