From 1dee36c761b87ab79bb54cfc561d576d8c72434c Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Wed, 20 Apr 2022 10:40:09 +0200 Subject: Remove accessibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/js/filelist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files/js') 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) -- cgit v1.2.3