]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix max contrast retrieval to limit minimum color for relative time
authorMorris Jobke <hey@morrisjobke.de>
Wed, 24 Jul 2019 19:48:52 +0000 (21:48 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 24 Jul 2019 19:48:52 +0000 (21:48 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/files/js/filelist.js

index bfaee261b1114d0cab4495be247564e32caa782b..a210b6caac22566efe1caa44d07923e7aeab3508 100644 (file)
 
                        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