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

@@ -24,6 +24,6 @@
<script>
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object")
for (var [key, value] of Object.entries(palette.color))
document.body.setAttribute("data-md-color-" + key, value)
for (var key of Object.keys(palette.color))
document.body.setAttribute("data-md-color-" + key, palette.color[key])
</script>