- Installa APP: Messaggio in CIMA

- in sistemazione: select compare la scelta di prima.
This commit is contained in:
Surya Paolo
2022-12-07 18:16:23 +01:00
parent 077c2dbd9e
commit 944d121943
29 changed files with 1119 additions and 752 deletions

View File

@@ -58,7 +58,7 @@ export default {
}
}
function isScrolledIntoView (el: any) {
function isScrolledIntoView(el: any) {
let rect = el.getBoundingClientRect()
let elemTop = rect.top
let elemBottom = rect.bottom
@@ -75,6 +75,16 @@ export default {
console.log('scrolled')
}
}
let displayMode = 'browser';
const mqStandAlone = '(display-mode: standalone)';
// @ts-ignore
if (((navigator && (navigator.standalone))) ||
(window.matchMedia(mqStandAlone).matches)) {
displayMode = 'standalone'
}
globalStore.isAppRunning = displayMode === 'standalone';
}
function mounted() {