mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #24636 from nextcloud/fix/noid/dashboard-without-accessibility
[stable20] Avoid dashboard crash when accessibility app is not installed
This commit is contained in:
commit
8fc1ab560a
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -25,7 +25,7 @@ import prefixWithBaseUrl from './prefixWithBaseUrl'
|
|||
|
||||
export default (background, time = 0) => {
|
||||
if (background === 'default') {
|
||||
if (window.OCA.Accessibility.theme === 'dark') {
|
||||
if (window.OCA.Accessibility?.theme === 'dark') {
|
||||
return prefixWithBaseUrl('eduardo-neves-pedra-azul.jpg')
|
||||
}
|
||||
return prefixWithBaseUrl('kamil-porembinski-clouds.jpg')
|
||||
|
|
|
|||
Loading…
Reference in a new issue