containers: prevent errors with some color formats in colorWidget
This commit is contained in:
parent
509fcb7f2f
commit
c97372739c
2 changed files with 5 additions and 2 deletions
|
|
@ -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) {}
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue