Fix max contrast retrieval to limit minimum color for relative time
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
c08d2cbda7
commit
861daee4d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue