diff --git a/README.md b/README.md index 3fc831c7..cb24b8bc 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ Name | Description | Values | Default ```php $wgCitizenManifestOptions = [ 'background_color' => '#0d0e12', + 'description' => '', + 'short_name' => '', 'theme_color' => "#0d0e12", 'icons' => [], ]; diff --git a/includes/Api/ApiWebappManifest.php b/includes/Api/ApiWebappManifest.php index 41f3625e..193de44a 100644 --- a/includes/Api/ApiWebappManifest.php +++ b/includes/Api/ApiWebappManifest.php @@ -95,6 +95,10 @@ class ApiWebappManifest extends ApiBase { $resultObj->addValue( null, 'short_name', $options['short_name'] ); } + if ( $options['description'] !== '' ) { + $resultObj->addValue( null, 'description', $options['description'] ); + } + $main->setCacheMaxAge( self::CACHE_MAX_AGE ); $main->setCacheMode( 'public' ); } diff --git a/skin.json b/skin.json index 8aa10907..6131c14f 100644 --- a/skin.json +++ b/skin.json @@ -677,6 +677,7 @@ "ManifestOptions": { "value": { "background_color": "#0d0e12", + "description": "", "short_name": "", "theme_color": "#0d0e12", "icons": []