fix(core): update

This commit is contained in:
2023-06-11 16:09:06 +02:00
parent 4d6ae3ba87
commit e6c15b2d81
5 changed files with 91 additions and 71 deletions

View File

@@ -0,0 +1,12 @@
export class Pwa {
public isInstalled(): boolean {
let isInstalled: boolean;
if (globalThis?.matchMedia?.('(display-mode: standalone)').matches) {
isInstalled = true;
console.log('PWA installed');
} else {
isInstalled = false;
}
return isInstalled;
}
}