eventually-inconsistent/layouts/partials/comments.html
Felipe Cotti db0b6704f7
Some checks are pending
Deploy Eventually (In)Consistent / build-and-deploy (push) Waiting to run
Initial Release!
2025-02-25 20:06:21 -03:00

16 lines
619 B
HTML

<script defer src="https://comentario.cotti.com.br/comentario.js"></script>
<comentario-comments></comentario-comments>
<noscript>Please enable JavaScript to view comments.</noscript>
<script>
const comentarioComments = document.getElementsByTagName("comentario-comments");
if (localStorage.getItem("theme") === "dark") {
for (const commentElement of comentarioComments) {
commentElement.setAttribute("theme", "dark");
}
} else {
for (const commentElement of comentarioComments) {
commentElement.setAttribute("theme", "light");
}
}
</script>