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.
1 parent bce5a87 commit aeee30eCopy full SHA for aeee30e
1 file changed
packages/devtools-vite/src/app/utils/color.ts
@@ -49,7 +49,7 @@ const predefinedColorMap = {
49
50
export function getPluginColor(name: string, opacity = 1): string {
51
name = name.replace(/[^a-z]+/gi, '').toLowerCase()
52
- if (predefinedColorMap[name]) {
+ if (name in predefinedColorMap) {
53
const color = predefinedColorMap[name]!
54
if (typeof color === 'number') {
55
return getHsla(color, opacity)
0 commit comments