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 committed by Backportbot
parent c08d2cbda7
commit 861daee4d8
1 changed files with 1 additions and 1 deletions

View File

@ -1542,7 +1542,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