1405/03/31-apk link
This commit is contained in:
+8
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user