Declare window.navigator typing

This commit is contained in:
redphx
2024-12-08 20:52:13 +07:00
parent 8c446ceec3
commit e1ba2344b7
4 changed files with 10 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ export function checkForUpdate() {
* Disable PWA requirement on Safari
*/
export function disablePwa() {
const userAgent = ((window.navigator as any).orgUserAgent || window.navigator.userAgent || '').toLowerCase();
const userAgent = (window.navigator.orgUserAgent || window.navigator.userAgent || '').toLowerCase();
if (!userAgent) {
return;
}