redirect to different pages based on user's device

This commit is contained in:
MaysWind
2025-10-21 21:34:53 +08:00
parent 83bd8f23f4
commit 1f101fea3e
2 changed files with 28 additions and 9 deletions
+8
View File
@@ -8,3 +8,11 @@ export function getBasePath(): string {
return path.substring(0, lastSlashIndex);
}
export function navigateToHomePage(type: 'desktop' | 'mobile'): void {
if (__EZBOOKKEEPING_IS_PRODUCTION__) {
window.location.replace(`${type}#/`);
} else {
window.location.replace(`${type}.html#/`);
}
}