fix: theme switcher not change button text
This commit is contained in:
parent
6c20822bc1
commit
3024735e37
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ function detectCurrentScheme() {
|
||||||
return 'light'
|
return 'light'
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeButtonText(switchButton)
|
function changeButtonText()
|
||||||
{
|
{
|
||||||
if (switchButton) {
|
if (switchButton) {
|
||||||
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}
|
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue