feat: add support for Hyvor Talk comments

This commit is contained in:
welpo
2023-07-17 20:10:18 +02:00
parent 5214dd3560
commit 7924e8206c
10 changed files with 184 additions and 43 deletions

View File

@@ -9,7 +9,7 @@ function setTheme(theme) {
document.documentElement.setAttribute("data-theme", theme);
localStorage.setItem("theme", theme);
// Dispatch a custom event for utterances and giscus.
// Dispatch a custom event for comment systems.
const event = new CustomEvent("themeChanged", {
detail: { theme: theme }
});