Skip to content

Commit

Permalink
fix(pdf): remove canvas in white background
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Jan 30, 2022
1 parent 716b7e7 commit 6b3bdff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/better-write-plugin-pdf/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ export const PluginPDFSet = (
stores.PDF.styles.switcher.cover &&
stores.PDF.styles.base.background.data
? undefined
: !isTheme.value &&
stores.PDF.styles.base.background.color === '#FFFFFF'
? undefined
: [
{
canvas: [generate().styles().background()],
Expand Down

0 comments on commit 6b3bdff

Please sign in to comment.