Compare commits

...

2 commits

Author SHA1 Message Date
Henry Jameson
ba0855ad64 Merge branch 'themes3-grand-finale-maybe' into shigusegubu-themes3 2024-10-29 23:55:57 +02:00
Henry Jameson
1873c75a7f don't shit the bed if can't find a color 2024-10-29 23:55:44 +02:00

View file

@ -523,9 +523,14 @@ export default {
})
exports.computeColor = (color) => {
const computedColor = findColor(color, { dynamicVars: dynamicVars.value, staticVars: staticVars.value })
if (computedColor) {
return rgb2hex(computedColor)
let computedColor
try {
computedColor = findColor(color, { dynamicVars: dynamicVars.value, staticVars: staticVars.value })
if (computedColor) {
return rgb2hex(computedColor)
}
} catch (e) {
console.warn(e)
}
return null
}