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
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) => {
|
export default (background, time = 0) => {
|
||||||
if (background === 'default') {
|
if (background === 'default') {
|
||||||
if (window.OCA.Accessibility.theme === 'dark') {
|
if (window.OCA.Accessibility?.theme === 'dark') {
|
||||||
return prefixWithBaseUrl('eduardo-neves-pedra-azul.jpg')
|
return prefixWithBaseUrl('eduardo-neves-pedra-azul.jpg')
|
||||||
}
|
}
|
||||||
return prefixWithBaseUrl('kamil-porembinski-clouds.jpg')
|
return prefixWithBaseUrl('kamil-porembinski-clouds.jpg')
|
||||||
|
|
Loading…
Reference in New Issue