From d3be01a1da42ff7e4f8178e0e07746c3c795c5d9 Mon Sep 17 00:00:00 2001 From: proletarius101 <54175165+proletarius101@users.noreply.github.com> Date: Sun, 24 Oct 2021 23:28:40 +0800 Subject: Add pwa (#3890) * Don't use Chrome or indeed Firefox on Android Would close #1963. But I will not finish this PR because the idea that every single website on the internet should have to do this is absolutely ridiculous. * add pwa manifest Add a pwa manifest as defined in https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Installable_PWAs - creates shortcuts without the browser frame - has a splash screen - has an independent view stack than the browser one * update manifest as per pwabuilder.com * add 32x32 and 48x48 icon config * enhance manifest spec compliance * change as per suggestions * Update app/layout/layout.phtml Co-authored-by: Alexandre Alapetite * fix mobile icon padding * remove screen auto rotation * change theme color to white * Move meta (Should not be in the referrer condition) * JSON HTTP cache Co-authored-by: Frans de Jonge Co-authored-by: Alexandre Alapetite --- app/layout/layout.phtml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/layout/layout.phtml') diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index 791bfb149..c5c1d22ff 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -13,6 +13,7 @@ if (_t('gen.dir') === 'rtl') { renderHelper('javascript_vars'); ?> + @@ -20,6 +21,7 @@ if (_t('gen.dir') === 'rtl') { + allow_referrer) { ?> -- cgit v1.2.3