Istruzioni per installare l'APP: Android, iOS
This commit is contained in:
@@ -7554,8 +7554,8 @@ export const tools = {
|
||||
},
|
||||
|
||||
checkApp() {
|
||||
console.log('checkApp')
|
||||
const globalStore = useGlobalStore()
|
||||
console.log('checkApp (homescreen=', globalStore.homescreen)
|
||||
|
||||
try {
|
||||
let displayMode = 'browser'
|
||||
@@ -7569,7 +7569,7 @@ export const tools = {
|
||||
// prova altro 2
|
||||
console.log('displayMode = ', displayMode)
|
||||
|
||||
globalStore.isAppRunning = displayMode === 'standalone'
|
||||
globalStore.isAppRunning = displayMode === 'standalone' || globalStore.homescreen
|
||||
} catch (e) {
|
||||
console.log('error navigator.standalone ?!')
|
||||
}
|
||||
|
||||
@@ -186,6 +186,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
addNewRecord: '',
|
||||
isAppRunning: false,
|
||||
deferredPrompt: null,
|
||||
homescreen: '',
|
||||
}),
|
||||
|
||||
getters: {
|
||||
|
||||
Reference in New Issue
Block a user