This commit is contained in:
Surya Paolo
2022-12-20 18:54:08 +01:00
parent 15cd3300e2
commit c1a7baf50d

View File

@@ -7398,8 +7398,8 @@ export const tools = {
const globalStore = useGlobalStore()
try {
let displayMode = 'browser';
const mqStandAlone = '(display-mode: standalone)';
let displayMode = 'browser'
const mqStandAlone = '(display-mode: standalone)'
// @ts-ignore
if (((navigator && (navigator.standalone))) ||
(window.matchMedia(mqStandAlone).matches)) {
@@ -7409,7 +7409,7 @@ export const tools = {
// prova altro 2
console.log('displayMode = ', displayMode)
globalStore.isAppRunning = displayMode === 'standalone';
globalStore.isAppRunning = displayMode === 'standalone'
} catch (e) {
console.log('error navigator.standalone ?!')
}