aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard/src/helpers/getBackgroundUrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dashboard/src/helpers/getBackgroundUrl.js')
-rw-r--r--apps/dashboard/src/helpers/getBackgroundUrl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dashboard/src/helpers/getBackgroundUrl.js b/apps/dashboard/src/helpers/getBackgroundUrl.js
index 4876fa77e86..88a3ab57291 100644
--- a/apps/dashboard/src/helpers/getBackgroundUrl.js
+++ b/apps/dashboard/src/helpers/getBackgroundUrl.js
@@ -23,9 +23,9 @@
*/
import { generateUrl } from '@nextcloud/router'
-import prefixWithBaseUrl from './prefixWithBaseUrl'
+import { prefixWithBaseUrl } from './prefixWithBaseUrl.js'
-export default (background, time = 0, themingDefaultBackground = '') => {
+export const getBackgroundUrl = (background, time = 0, themingDefaultBackground = '') => {
const enabledThemes = window.OCA?.Theming?.enabledThemes || []
const isDarkTheme = (enabledThemes.length === 0 || enabledThemes[0] === 'default')
? window.matchMedia('(prefers-color-scheme: dark)').matches
@@ -42,7 +42,7 @@ export default (background, time = 0, themingDefaultBackground = '') => {
return prefixWithBaseUrl('kamil-porembinski-clouds.jpg')
} else if (background === 'custom') {
- return generateUrl('/apps/dashboard/background') + '?v=' + time
+ return generateUrl('/apps/theming/background') + '?v=' + time
}
return prefixWithBaseUrl(background)