Sfoglia il codice sorgente

Added check on window.Accessibility

It crash the Dashboard when the Accessibility module is not presetn

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
tags/v21.0.0beta1
Avior 3 anni fa
parent
commit
e0e61b8658

+ 1
- 1
apps/dashboard/js/dashboard.js
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
apps/dashboard/js/dashboard.js.map
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
apps/dashboard/src/helpers/getBackgroundUrl.js Vedi 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')

Loading…
Annulla
Salva