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
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
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 }
});