Web app manifest

This commit is contained in:
Pierre Rudloff 2016-07-11 12:11:26 +02:00
parent 739ed215ea
commit eccacadc48
4 changed files with 19 additions and 1 deletions

View file

@ -295,7 +295,8 @@ class Service
'{{BaseViewport}}' => $bMobile ? 'width=device-width,initial-scale=1,user-scalable=no' : 'width=950,maximum-scale=2',
'{{BaseContentSecurityPolicy}}' => $sContentSecurityPolicy ?
'<meta http-equiv="Content-Security-Policy" content="'.$sContentSecurityPolicy.'" />' : '',
'{{BaseDir}}' => false && \in_array($sLanguage, array('ar', 'he', 'ur')) ? 'rtl' : 'ltr'
'{{BaseDir}}' => false && \in_array($sLanguage, array('ar', 'he', 'ur')) ? 'rtl' : 'ltr',
'{{BaseAppManifestLink}}' => $this->staticPath('manifest.json')
);
$aTemplateParameters['{{RainloopBootData}}'] = \json_encode(array(

View file

@ -20,6 +20,7 @@
{{BaseAppFaviconTouchLinkTag}}
<link type="text/css" rel="stylesheet" href="{{BaseAppMainCssLink}}" />
<link type="text/css" rel="stylesheet" href="{{BaseAppThemeCssLink}}" id="app-theme-link" />
<link rel="manifest" href="{{BaseAppManifestLink}}" />
</head>
<body>
<div id="rl-app"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View file

@ -0,0 +1,16 @@
{
"name": "RainLoop Webmail",
"short_name": "RainLoop",
"description": "Simple, modern & fast web-based email client",
"display": "standalone",
"icons": [{
"src": "apple-touch-icon.png",
"sizes": "64x64",
"type": "image/png"
}, {
"src": "android-icon.png",
"sizes": "192x192",
"type": "image/png"
}],
"start_url": "../../../../"
}