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:
Roeland Jago Douma 2020-12-14 15:14:52 +01:00 committed by GitHub
commit 8fc1ab560a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

View File

@ -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')