summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-20 10:40:09 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-21 19:00:28 +0200
commit1dee36c761b87ab79bb54cfc561d576d8c72434c (patch)
treef16175b4983c69b0796fafb71d6ccc343cf8bbd7 /apps/files/js
parent7b686abe7fb53c8475d8295a59167bdab95fccc9 (diff)
downloadnextcloud-server-1dee36c761b87ab79bb54cfc561d576d8c72434c.tar.gz
nextcloud-server-1dee36c761b87ab79bb54cfc561d576d8c72434c.zip
Remove accessibility
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 69322273a11..85b9e883ac6 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1781,7 +1781,8 @@
td.append(linkElem);
tr.append(td);
- var isDarkTheme = OCA.Accessibility && OCA.Accessibility.theme === 'dark'
+ var enabledThemes = window.OCA?.Theming?.enabledThemes || []
+ var isDarkTheme = enabledThemes.join('').indexOf('dark') !== -1
try {
var maxContrastHex = window.getComputedStyle(document.documentElement)