🔨 avoid using es2020 for vercel

This commit is contained in:
platane
2020-10-20 18:10:36 +02:00
parent c4889362d3
commit 0fc64a0dab

View File

@@ -12,9 +12,7 @@ export const getGithubUserContribution = async (userName: string) => {
dom.window.document.querySelectorAll(".legend > li")
).map(
(element) =>
(element.getAttribute("style") || "").match(
/background\-color: +(#\w+)/
)?.[1]!
element.getAttribute("style")!.match(/background\-color: +(#\w+)/)![1]!
);
const cells = Array.from(