summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/src
diff options
context:
space:
mode:
authorAvior <florian.bouillon@delta-wings.net>2020-11-30 15:51:10 +0100
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2020-11-30 15:52:42 +0000
commite0e61b86588777c8dd488dd6a2ffcfe11f1dde50 (patch)
treedd70601ae04a3446287a5b2c71a59af00d1b5a59 /apps/dashboard/src
parent3a8bd38ca414cd50ff690722f8bbaaace43a341e (diff)
downloadnextcloud-server-e0e61b86588777c8dd488dd6a2ffcfe11f1dde50.tar.gz
nextcloud-server-e0e61b86588777c8dd488dd6a2ffcfe11f1dde50.zip
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>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r--apps/dashboard/src/helpers/getBackgroundUrl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dashboard/src/helpers/getBackgroundUrl.js b/apps/dashboard/src/helpers/getBackgroundUrl.js
index 3af48030534..814b35f01b7 100644
--- a/apps/dashboard/src/helpers/getBackgroundUrl.js
+++ b/apps/dashboard/src/helpers/getBackgroundUrl.js
@@ -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')