1405/03/31-apk link

This commit is contained in:
2026-06-21 13:05:56 +03:30
parent f2bf58f4db
commit 499b0b1e77
7 changed files with 69 additions and 23 deletions
+8 -1
View File
@@ -224,7 +224,14 @@ export function applyProjectFont() {
document.documentElement.classList.add('font-dana')
}
}
export function isTWA() {
if (sessionStorage.getItem('appMode') === 'twa') return true;
if (document.referrer.startsWith('android-app://')) {
sessionStorage.setItem('appMode', 'twa');
return true;
}
return false;
}
export function applyProjectTheme() {
applyProjectFont()