From: Morris Jobke Date: Wed, 24 Jul 2019 19:48:52 +0000 (+0200) Subject: Fix max contrast retrieval to limit minimum color for relative time X-Git-Tag: v17.0.0beta1~93^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e02d715887e3781beb52cbe032f2f6f6241c949;p=nextcloud-server.git Fix max contrast retrieval to limit minimum color for relative time Signed-off-by: Morris Jobke --- 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