uuuuh... tired fixes and finishes for landing page and PWA

This commit is contained in:
ThaUnknown 2020-09-17 02:03:22 +02:00
parent d52252428a
commit d59022b0c3
3 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,9 @@
@media all and (display-mode: browser) {
body {
/* display: none; */
}
}
.cover-img {
object-fit: cover
}

View file

@ -30,9 +30,7 @@
deferredPrompt.prompt();
deferredPrompt.userChoice.then((choiceResult) => {
if (choiceResult.outcome === 'accepted') {
console.log('User accepted the install prompt');
} else {
console.log('User dismissed the install prompt');
document.location.href = "/app/app.html"
}
});
});

View file

@ -1,5 +1,5 @@
{
"name": "Miru - Torrent streaming made simple!",
"name": "Miru",
"short_name": "Miru",
"start_url": "/app/app.html",
"display": "standalone",