|
|
|
|
@ -422,7 +422,7 @@ class ThemingController extends Controller {
|
|
|
|
|
*
|
|
|
|
|
* @param string $app ID of the app
|
|
|
|
|
* @psalm-suppress LessSpecificReturnStatement The content of the Manifest doesn't need to be described in the return type
|
|
|
|
|
* @return JSONResponse<Http::STATUS_OK, array{name: string, short_name: string, start_url: string, theme_color: string, background_color: string, description: string, icons: list<array{src: non-empty-string, type: string, sizes: string}>, display: string}, array{}>|JSONResponse<Http::STATUS_NOT_FOUND, array{}, array{}>
|
|
|
|
|
* @return JSONResponse<Http::STATUS_OK, array{name: string, short_name: string, start_url: string, theme_color: string, background_color: string, description: string, icons: list<array{src: non-empty-string, type: string, sizes: string}>, display_override: list<string>, display: string}, array{}>|JSONResponse<Http::STATUS_NOT_FOUND, array{}, array{}>
|
|
|
|
|
*
|
|
|
|
|
* 200: Manifest returned
|
|
|
|
|
* 404: App not found
|
|
|
|
|
@ -481,6 +481,7 @@ class ThemingController extends Controller {
|
|
|
|
|
'sizes' => '16x16'
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
'display_override' => [$this->config->getSystemValueBool('theming.standalone_window.enabled', true) ? 'minimal-ui' : ''],
|
|
|
|
|
'display' => $this->config->getSystemValueBool('theming.standalone_window.enabled', true) ? 'standalone' : 'browser'
|
|
|
|
|
];
|
|
|
|
|
$response = new JSONResponse($responseJS);
|
|
|
|
|
|