Merge pull request #24456 from Aviortheking/patch-1

Added check on getBackgroundUrl
This commit is contained in:
Roeland Jago Douma 2020-12-01 13:48:46 +01:00 committed by GitHub
commit dda83950f1
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

@ -28,7 +28,7 @@ export default (background, time = 0, themingDefaultBackground = '') => {
if (themingDefaultBackground && themingDefaultBackground !== 'backgroundColor') {
return generateUrl('/apps/theming/image/background') + '?v=' + window.OCA.Theming.cacheBuster
}
if (window.OCA.Accessibility.theme === 'dark') {
if (window.OCA.Accessibility && window.OCA.Accessibility.theme === 'dark') {
return prefixWithBaseUrl('eduardo-neves-pedra-azul.jpg')
}
return prefixWithBaseUrl('kamil-porembinski-clouds.jpg')