fix: theme switcher not change button text

This commit is contained in:
Carson Chen 2022-04-10 09:34:06 +08:00
parent 6c20822bc1
commit 3024735e37

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" }}