🔨 fix github contribution

This commit is contained in:
platane
2020-11-27 09:58:23 +01:00
parent 55feaa46bc
commit 57a7e7cf36

View File

@@ -45,7 +45,7 @@ const parseUserPage = (content: string) => {
const color = bgColor.replace(/\s/g, "");
colorSchemeMap[color] = i;
if (color.startsWith("var(--)")) colorScheme[i] = color;
if (!color.startsWith("var(--")) colorScheme[i] = color;
}
});
@@ -73,12 +73,7 @@ const parseUserPage = (content: string) => {
)
.flat();
return {
cells,
colorScheme: colorScheme.every((c: string) => c.startsWith("#"))
? colorScheme
: ["#ebedf0", "#9be9a8", "#40c463", "#30a14e", "#216e39"],
};
return { cells, colorScheme };
};
/**