Added polyfills for unfetch, URL, Object.entries and Element.scrollTo

This commit is contained in:
squidfunk
2022-01-06 20:57:06 +01:00
parent 0a25f757f4
commit 0bd5ff2741
22 changed files with 126 additions and 60 deletions

View File

@@ -117,8 +117,7 @@ export function mountPalette(
/* Set color palette */
for (const [key, value] of Object.entries(palette.color))
if (typeof value === "string")
document.body.setAttribute(`data-md-color-${key}`, value)
document.body.setAttribute(`data-md-color-${key}`, value)
/* Toggle visibility */
for (let index = 0; index < inputs.length; index++) {