1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2025-07-05 19:42:47 +02:00

chore: patch flareact to support script tags

- to be removed once https://github.com/flareact/flareact/pull/57 merged
This commit is contained in:
Adam Janis
2020-11-22 13:32:16 +01:00
parent 5a086f5ad0
commit f6d3cb10bf
4 changed files with 121 additions and 13 deletions

View File

@ -108,15 +108,6 @@ export default function Index({ config, kvMonitors, kvMonitorsLastUpdate }) {
</a>
</div>
</div>
<script>
{`
function setTheme(theme) {
document.documentElement.classList.remove("dark", "light")
document.documentElement.classList.add(theme)
localStorage.theme = theme
}
`}
</script>
</div>
</div>
)