We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8038d0 commit 253d378Copy full SHA for 253d378
layouts/partials/comments.html
@@ -33,7 +33,7 @@ <h2>Comments</h2>
33
loadUtterances(isDarkMode);
34
35
// Watch for theme changes
36
-const observer = new MutationObserver((mutations) => {
+const themeObserver = new MutationObserver((mutations) => {
37
mutations.forEach((mutation) => {
38
if (mutation.type === 'attributes' && mutation.attributeName === 'class') {
39
const isDarkMode = getCurrentTheme() === 'dark';
@@ -44,7 +44,7 @@ <h2>Comments</h2>
44
});
45
46
// Start observing the body element for class changes
47
-observer.observe(document.body, {
+themeObserver.observe(document.body, {
48
attributes: true,
49
attributeFilter: ['class']
50
0 commit comments