Merge pull request #21 from codgician/master
Better multilingual support
This commit is contained in:
commit
46f97f518c
5 changed files with 5 additions and 4 deletions
|
@ -7,6 +7,7 @@ var metaThemeColor = document.querySelector("meta[name=theme-color]");
|
|||
|
||||
if (getTheme !== null) {
|
||||
document.body.classList.toggle("dark-theme", isDark);
|
||||
isDark ? metaThemeColor.setAttribute("content", "#252627") : metaThemeColor.setAttribute("content", "#fafafa");
|
||||
}
|
||||
|
||||
themeToggle.addEventListener("click", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue