Fix Registration
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user