Skip to content

Commit

Permalink
fix regular themes
Browse files Browse the repository at this point in the history
  • Loading branch information
trinkey committed Nov 28, 2024
1 parent a31f7c5 commit 794cb1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smiggins/ts/favicon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ let _autoColors: {

// @ts-ignore
if ("{{ THEME|escapejs }}" == "auto") {
document.getElementById("theme-css").innerHTML = getThemeAuto();
themeObject = null;
document.getElementById("theme-css").innerHTML = getThemeAuto();
autoInit();
} else {
document.getElementById("theme-css").innerHTML = getThemeCSS(themeObject);
themeObject = JSON.parse('{{ theme_str|escapejs }}');
document.getElementById("theme-css").innerHTML = getThemeCSS(themeObject);
}

// set proper favicon
Expand Down

0 comments on commit 794cb1a

Please sign in to comment.