Merge pull request #21 from codgician/master

Better multilingual support
This commit is contained in:
Djordje Atlialp 2019-05-23 01:44:59 +02:00 committed by GitHub
commit 46f97f518c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View file

@ -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", () => {