Skip to content

Commit

Permalink
fix: theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuk1ko committed Jul 3, 2023
1 parent 434540b commit ec3bbe4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ Vue.directive('theme-class', {
el.dataset.isDark === isDark &&
(value === oldValue ||
(value && oldValue && value[0] === oldValue[0] && value[1] === oldValue[1])) &&
targetClass
? el.classList.contains(targetClass)
: true
(targetClass ? el.classList.contains(targetClass) : true)
) {
return;
}
Expand Down

0 comments on commit ec3bbe4

Please sign in to comment.