We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c504ed6 + 003e235 commit e51c269Copy full SHA for e51c269
apps/files/js/filelist.js
@@ -1540,13 +1540,16 @@
1540
1541
try {
1542
var maxContrastHex = window.getComputedStyle(document.documentElement)
1543
- .getPropertyValue('--color-text-maxcontrast')
+ .getPropertyValue('--color-text-maxcontrast').trim()
1544
+ if (maxContrastHex.length < 4) {
1545
+ throw Error();
1546
+ }
1547
var maxContrast = parseInt(maxContrastHex.substring(1, 3), 16)
1548
} catch(error) {
1549
var maxContrast = OCA.Accessibility
1550
&& OCA.Accessibility.theme === 'themedark'
- ? '130'
- : '118'
1551
+ ? 130
1552
+ : 118
1553
}
1554
1555
// size column
0 commit comments