Skip to content

Commit

Permalink
Update ThemingController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen committed Feb 5, 2025
1 parent 1771b7c commit aadcd90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/theming/lib/Controller/ThemingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,10 @@ public function getManifest(string $app): JSONResponse {
$startUrl = $this->urlGenerator->getBaseUrl() . '/apps/' . $app . '/';
}
$description = $info['summary'] ?? '';
$displayMode = $this->config->getSystemValueBool('theming.standalone_window.enabled', true) ? 'standalone' : 'browser';
}
/**
* @var string $description
* @var string $shortName
* @var string $displayMode
*/
$responseJS = [
'name' => $name,
Expand All @@ -483,7 +481,7 @@ public function getManifest(string $app): JSONResponse {
'sizes' => '16x16'
]
],
'display' => $displayMode
'display' => $this->config->getSystemValueBool('theming.standalone_window.enabled', true) ? 'standalone' : 'browser'
];
$response = new JSONResponse($responseJS);
$response->cacheFor(3600);
Expand Down

0 comments on commit aadcd90

Please sign in to comment.