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

@ -26,7 +26,7 @@
}
],
"background_color": "#efefef",
"display": "minimal-ui",
"display": "standalone",
"theme_color": "#3367d6",
"screenshots" : [
{

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

View file

@ -909,6 +909,13 @@ x-peers:empty~x-instructions {
}
}
/* PWA Standalone styles */
@media all and (display-mode: standalone) {
footer {
padding-bottom: 34px;
}
}
/* Constants */
:root {