aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-13 10:18:53 +0000
committerMario <mario@mariovavti.com>2022-01-13 10:18:53 +0000
commit57ff6674384e7d6a18f505fdf51232f42b75cc72 (patch)
tree50b069bbe2fccd0b36643463600c50b3fb3dfee1 /boot.php
parentabe3039926dd388108e620148868880cb1da3fa3 (diff)
downloadvolse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.tar.gz
volse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.tar.bz2
volse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.zip
pwa improvements according to lighthouse
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 8d3953f13..16b81c3d0 100644
--- a/boot.php
+++ b/boot.php
@@ -1186,6 +1186,8 @@ class App {
if($interval < 10000)
$interval = 80000;
+ $theme_color = ((local_channel()) ? get_pconfig(local_channel(), 'redbasic', 'nav_bg') : App::$theme_info['theme_color']);
+
if(! isset(self::$page['title']) && isset(self::$config['system']['sitename']))
self::$page['title'] = self::$config['system']['sitename'];
@@ -1200,13 +1202,17 @@ class App {
}
}
+
// webmanifest
head_add_link(['rel' => 'manifest', 'href' => '/manifest.json']);
self::$meta->set('application-name', Zotlabs\Lib\System::get_platform_name());
self::$meta->set('generator', Zotlabs\Lib\System::get_platform_name());
+ self::$meta->set('theme-color', $theme_color);
head_add_link(['rel' => 'shortcut icon', 'href' => head_get_icon()]);
+ head_add_link(['rel' => 'apple-touch-icon', 'href' => '/images/app/hz-192.png']);
+
$x = [ 'header' => '' ];
/**
@@ -2342,7 +2348,6 @@ function construct_page() {
$current_theme = Zotlabs\Render\Theme::current();
-
// logger('current_theme: ' . print_r($current_theme,true));
// Zotlabs\Render\Theme::debug();