Skip to content

Commit

Permalink
feat(theming): allow to disable standalone windows
Browse files Browse the repository at this point in the history
Co-authored-by: Ferdinand Thiessen <[email protected]>

Signed-off-by: Simon L. <[email protected]>

[skip ci]
  • Loading branch information
szaimen authored and backportbot[bot] committed Feb 6, 2025
1 parent de83b2c commit 5efeb92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/theming/lib/Controller/ThemingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public function getManifest(string $app): JSONResponse {
'sizes' => '16x16'
]
],
'display' => 'standalone'
'display' => $this->config->getSystemValueBool('theming.standalone_window.enabled', true) ? 'standalone' : 'browser'
];
$response = new JSONResponse($responseJS);
$response->cacheFor(3600);
Expand Down
2 changes: 1 addition & 1 deletion apps/theming/tests/Controller/ThemingControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ public function testGetManifest() {
'sizes' => '16x16'
]
],
'display' => 'standalone',
'display' => $standalone ? 'standalone' : 'browser',
'short_name' => 'Nextcloud',
'theme_color' => null,
'background_color' => null,
Expand Down
8 changes: 8 additions & 0 deletions config/config.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,14 @@
*/
'enforce_theme' => '',


/**
* This setting allows to disable the PWA functionality that allows browsers to open web applications in dedicated windows.
*
* Defaults to ``true``
*/
'theming.standalone_window.enabled' => true,

/**
* The default cipher for encrypting files. Currently supported are:
* - AES-256-CTR
Expand Down

0 comments on commit 5efeb92

Please sign in to comment.