containers: prevent errors with some color formats in colorWidget

This commit is contained in:
jean-emmanuel 2021-10-25 08:42:04 +02:00
parent 509fcb7f2f
commit c97372739c
2 changed files with 5 additions and 2 deletions

View file

@ -18,8 +18,10 @@ module.exports = (container)=>{
}
if (color) {
container.style.setProperty('--color-scrollbar', chroma(color).alpha(alpha).css())
container.style.setProperty('--color-scrollbar-on', chroma(color).alpha(alphaOn).css())
try {
container.style.setProperty('--color-scrollbar', chroma(color).alpha(alpha).css())
container.style.setProperty('--color-scrollbar-on', chroma(color).alpha(alphaOn).css())
} catch(e) {}
}
})