fix: theme switcher not change button text
This commit is contained in:
parent
6c20822bc1
commit
3024735e37
@ -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…
Reference in New Issue
Block a user