Skip to content

Commit

Permalink
Merge pull request #18 from natefrisch01/natefrisch01/themes
Browse files Browse the repository at this point in the history
Removed console logs.
  • Loading branch information
natefrisch01 committed Jan 17, 2024
2 parents fa68cfb + d1c5e17 commit a655044
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions linkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export class LinkManager {
this.currentTheme = document.body.classList.contains('theme-dark') ? 'theme-dark' : 'theme-light';
const currentStyleSheetHref = document.querySelector('link[rel="stylesheet"][href*="theme"]')?.getAttribute('href');
if ((this.currentTheme && this.currentTheme !== lastTheme) || (currentStyleSheetHref !== lastStyleSheetHref)) {
console.log(`Theme has changed to: ${this.currentTheme}`);
this.textColor = this.getComputedColorFromClass(this.currentTheme, '--text-normal');
console.log(this.textColor);
lastTheme = this.currentTheme;
if (currentStyleSheetHref) {
lastStyleSheetHref = currentStyleSheetHref;
Expand Down

0 comments on commit a655044

Please sign in to comment.