Fix max contrast retrieval to limit minimum color for relative time

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2019-07-24 21:48:52 +02:00
parent 3a6d8174a9
commit 5e02d71588
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View file

@ -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