diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-28 21:36:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 21:36:54 -0600 |
commit | 05f25963117f4829f5eae3c23d0e4c40cdbc0abf (patch) | |
tree | b9b1a706004fb65fe54a486d0ab40ea6d04b5af5 /core | |
parent | 58513255d26c08fc5921ce57dde2560e351c19f4 (diff) | |
parent | f9bc53146d482c5b4764ad972349740dbc8aca6c (diff) | |
download | nextcloud-server-05f25963117f4829f5eae3c23d0e4c40cdbc0abf.tar.gz nextcloud-server-05f25963117f4829f5eae3c23d0e4c40cdbc0abf.zip |
Merge pull request #4091 from nextcloud/Rudloff-manifest
Web app manifest for adding to Android home screen
Diffstat (limited to 'core')
-rw-r--r-- | core/img/manifest.json | 14 | ||||
-rw-r--r-- | core/templates/layout.user.php | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/core/img/manifest.json b/core/img/manifest.json new file mode 100644 index 00000000000..fcecb856614 --- /dev/null +++ b/core/img/manifest.json @@ -0,0 +1,14 @@ +{ + "name": "Nextcloud", + "start_url": "../../", + "icons": [{ + "src": "favicon-touch.png", + "type": "image/png", + "sizes": "128x128" + }, { + "src": "favicon-mask.svg", + "type": "image/svg+xml", + "sizes": "16x16" + }], + "display": "standalone" +} diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 31a5a1764f1..439567fe6a1 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -20,6 +20,7 @@ <link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>"> <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>"> <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getMailHeaderColor()); ?>"> + <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>"> <?php if (isset($_['inline_ocjs'])): ?> <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" type="text/javascript"> <?php print_unescaped($_['inline_ocjs']); ?> |