Merge pull request #149 from carson541/master
fix: theme switcher not change button text
This commit is contained in:
commit
58c29c6ea6
@ -58,7 +58,7 @@ function detectCurrentScheme() {
|
||||
return 'light'
|
||||
}
|
||||
|
||||
function changeButtonText(switchButton)
|
||||
function changeButtonText()
|
||||
{
|
||||
if (switchButton) {
|
||||
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}
|
||||
|
Loading…
Reference in New Issue
Block a user