diff options
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index a210b6caac2..7a6665b0807 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1541,12 +1541,15 @@ try { var maxContrastHex = window.getComputedStyle(document.documentElement) .getPropertyValue('--color-text-maxcontrast').trim() + if (maxContrastHex.length < 4) { + throw Error(); + } var maxContrast = parseInt(maxContrastHex.substring(1, 3), 16) } catch(error) { var maxContrast = OCA.Accessibility && OCA.Accessibility.theme === 'themedark' - ? '130' - : '118' + ? 130 + : 118 } // size column |