diff --git a/.env.development b/.env.development index fcf535bd..b9e9f538 100755 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.41" +APP_VERSION="0.5.42" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.example.production b/.env.example.production index f03fc0b7..cb055412 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="0.5.41" +APP_VERSION="0.5.42" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development index fcf535bd..b9e9f538 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.41" +APP_VERSION="0.5.42" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/riso.app/.env.production b/_ALL_SITES/riso.app/.env.production index ed230916..5586c01a 100644 --- a/_ALL_SITES/riso.app/.env.production +++ b/_ALL_SITES/riso.app/.env.production @@ -1,4 +1,4 @@ -APP_VERSION="0.5.41" +APP_VERSION="0.5.42" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/terradellavisione.app/.env.development b/_ALL_SITES/terradellavisione.app/.env.development index 4a845f71..ac270570 100755 --- a/_ALL_SITES/terradellavisione.app/.env.development +++ b/_ALL_SITES/terradellavisione.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.5.41" +APP_VERSION="0.5.42" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL="newfreeplanet" diff --git a/src/App.ts b/src/App.ts index 09a1359f..f8d21983 100755 --- a/src/App.ts +++ b/src/App.ts @@ -78,13 +78,20 @@ export default { let displayMode = 'browser'; const mqStandAlone = '(display-mode: standalone)'; + if (navigator) + console.log('navigator') + // @ts-ignore + if (navigator && navigator.standalone) + console.log('navigator.standalone') // @ts-ignore if (((navigator && (navigator.standalone))) || - (window.matchMedia(mqStandAlone).matches)) { + (window.matchMedia(mqStandAlone).matches)) { + console.log('navigator.standalone') displayMode = 'standalone' } globalStore.isAppRunning = displayMode === 'standalone'; + console.log('isapp running = ', globalStore.isAppRunning) } function mounted() { diff --git a/src/components/CEventsCalendar/CEventsCalendar.vue b/src/components/CEventsCalendar/CEventsCalendar.vue index 8ddfa6fe..1c0ff341 100755 --- a/src/components/CEventsCalendar/CEventsCalendar.vue +++ b/src/components/CEventsCalendar/CEventsCalendar.vue @@ -1401,6 +1401,7 @@