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.
2 parents fa68cfb + d1c5e17 commit a655044Copy full SHA for a655044
linkManager.ts
@@ -34,9 +34,7 @@ export class LinkManager {
34
this.currentTheme = document.body.classList.contains('theme-dark') ? 'theme-dark' : 'theme-light';
35
const currentStyleSheetHref = document.querySelector('link[rel="stylesheet"][href*="theme"]')?.getAttribute('href');
36
if ((this.currentTheme && this.currentTheme !== lastTheme) || (currentStyleSheetHref !== lastStyleSheetHref)) {
37
- console.log(`Theme has changed to: ${this.currentTheme}`);
38
this.textColor = this.getComputedColorFromClass(this.currentTheme, '--text-normal');
39
- console.log(this.textColor);
40
lastTheme = this.currentTheme;
41
if (currentStyleSheetHref) {
42
lastStyleSheetHref = currentStyleSheetHref;
0 commit comments