Merge pull request #9343 from vinzv/9337-fix-pwa-manifest

Adding bigger icons and updating one used for PWA
This commit is contained in:
Hypolite Petovan
2020-10-03 15:06:14 -04:00
committed by GitHub
6 changed files with 8 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class Manifest extends BaseModule
{
$config = DI::config();
$touch_icon = $config->get('system', 'touch_icon') ?: 'images/friendica-128.png';
$touch_icon = $config->get('system', 'touch_icon') ?: 'images/friendica-192.png';
$theme = DI::config()->get('system', 'theme');
@@ -44,7 +44,12 @@ class Manifest extends BaseModule
'icons' => [
[
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
'sizes' => '128x128',
'sizes' => '192x192',
'type' => 'image/png',
],
[
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
'sizes' => '512x512',
'type' => 'image/png',
],
],