Skip to content

Commit

Permalink
fix theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Keywos committed Mar 19, 2024
1 parent 03c92d5 commit 7ddb9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/editCode/cmView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ if (theme.value.auto === true) {
}
watchEffect(() => {
if (theme.value.auto === false) {
if (["mocha", "light"].includes(theme.value.name)) {
if (/^mocha$|light/.test(theme.value.name)) {
isDarkModeEnabled.value = false;
} else {
isDarkModeEnabled.value = true;
Expand Down

0 comments on commit 7ddb9e2

Please sign in to comment.