From 28d1319d7387b2556ac374447001e3f49555ffe8 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 10 Jul 2016 13:10:20 +0200 Subject: [PATCH] Improve web app Standalone mode Don't display bookmarklet in standalone mode Correct start URL --- css/style.css | 6 ++++++ manifest.json | 4 ++-- templates/index.tpl | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index 410c2e4..1633490 100644 --- a/css/style.css +++ b/css/style.css @@ -658,3 +658,9 @@ h1 { } } + +@media all and (display-mode: standalone) { + .bookmarklet { + display: none; + } +} diff --git a/manifest.json b/manifest.json index 57256cf..14f7835 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "short_name": "AllTube", "name": "AllTube Download", - "display": "minimal-ui", + "display": "standalone", "icons": [{ "src": "img/favicon.png", "sizes": "32x32", @@ -24,6 +24,6 @@ "type": "image/png" }], "lang": "en", - "start_url": "./index.php", + "start_url": "./", "theme_color": "#4F4F4F" } diff --git a/templates/index.tpl b/templates/index.tpl index b4e273d..1b258d1 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -21,7 +21,7 @@ See all supported websites -
+

Drag this to your bookmarks bar:

Bookmarklet