Skip to content

Commit

Permalink
fix:extra?.background额外加上判断
Browse files Browse the repository at this point in the history
  • Loading branch information
282931 committed Oct 27, 2023
1 parent 1900390 commit 0843c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ function setTheme(
...(currentBg ?? {}),
url: undefined,
};
if (extra.background.blur) {
if (typeof extra.background.blur === 'number') {
newBg.blur = extra.background.blur;
}
if (extra.background.opacity) {
if (typeof extra.background.opacity === 'number') {
newBg.opacity = extra.background.opacity;
}
if (extra.background.url) {
Expand Down

0 comments on commit 0843c49

Please sign in to comment.