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

@ -28,7 +28,7 @@
"background_color": "#efefef",
"start_url": "/",
"scope": "/",
"display": "minimal-ui",
"display": "standalone",
"theme_color": "#3367d6",
"screenshots" : [
{

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