Make PWA run standalone (fixes #264)

This commit is contained in:
schlagmichdoch 2024-02-23 13:02:40 +01:00
parent 07e46e472e
commit 8a56a271bc
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ class PairDrop {
}
onPwaInstallable(e) {
if (!window.matchMedia('(display-mode: minimal-ui)').matches) {
if (!window.matchMedia('(display-mode: standalone)').matches) {
// only display install btn when not installed
this.$headerInstallBtn.removeAttribute('hidden');
this.$headerInstallBtn.addEventListener('click', () => {