From f06e36e46b64ef05924ad14d0f94111c3093ccd9 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 19 May 2024 12:14:30 +0700 Subject: [PATCH] Use PWA version in Android app --- src/utils/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index ad3902b..682f55a 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,5 +1,5 @@ import { PrefKey, getPref, setPref } from "@utils/preferences"; -import { SCRIPT_VERSION } from "@utils/global"; +import { AppInterface, SCRIPT_VERSION } from "@utils/global"; import { UserAgent } from "@utils/user-agent"; /** @@ -38,7 +38,7 @@ export function disablePwa() { } // Check if it's Safari on mobile - if (UserAgent.isSafari(true)) { + if (!!AppInterface || UserAgent.isSafari(true)) { // Disable the PWA prompt Object.defineProperty(window.navigator, 'standalone', { value: true,