Make PWA standalone

This commit is contained in:
schlagmichdoch 2025-02-13 20:07:38 +01:00
parent 629328c2f6
commit 8a833cd69d
3 changed files with 9 additions and 2 deletions

View file

@ -81,7 +81,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', () => {