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
3a6d8174a9
commit
5e02d71588
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue