Merge pull request #149 from carson541/master

fix: theme switcher not change button text
This commit is contained in:
Dmitry Kolosov 2022-04-11 20:56:37 +03:00 committed by GitHub
commit 58c29c6ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ function detectCurrentScheme() {
return 'light'
}
function changeButtonText(switchButton)
function changeButtonText()
{
if (switchButton) {
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}