feat(PWA): add support for description field

This commit is contained in:
alistair3149 2024-11-13 18:23:40 -05:00
parent 79c0e453d3
commit 3073f52a61
No known key found for this signature in database
3 changed files with 7 additions and 0 deletions

View file

@ -74,6 +74,8 @@ Name | Description | Values | Default
```php
$wgCitizenManifestOptions = [
'background_color' => '#0d0e12',
'description' => '',
'short_name' => '',
'theme_color' => "#0d0e12",
'icons' => [],
];

View file

@ -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' );
}

View file

@ -677,6 +677,7 @@
"ManifestOptions": {
"value": {
"background_color": "#0d0e12",
"description": "",
"short_name": "",
"theme_color": "#0d0e12",
"icons": []