summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-24 21:48:52 +0200
committerMorris Jobke <hey@morrisjobke.de>2019-07-24 21:48:52 +0200
commit5e02d715887e3781beb52cbe032f2f6f6241c949 (patch)
tree29f83c40b7a72e1c166c05b865d7c80cf6894255 /apps/files/js/filelist.js
parent3a6d8174a92734a3cc4be476163f4a98ca4d3f81 (diff)
downloadnextcloud-server-5e02d715887e3781beb52cbe032f2f6f6241c949.tar.gz
nextcloud-server-5e02d715887e3781beb52cbe032f2f6f6241c949.zip
Fix max contrast retrieval to limit minimum color for relative time
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index bfaee261b11..a210b6caac2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1540,7 +1540,7 @@
try {
var maxContrastHex = window.getComputedStyle(document.documentElement)
- .getPropertyValue('--color-text-maxcontrast')
+ .getPropertyValue('--color-text-maxcontrast').trim()
var maxContrast = parseInt(maxContrastHex.substring(1, 3), 16)
} catch(error) {
var maxContrast = OCA.Accessibility