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