Skip to content

Commit

Permalink
fix: update background directive
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed May 7, 2021
1 parent b5beedd commit d01b446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/transforms/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface BackgroundOptions {
export const getBackground: TransformOption<BackgroundOptions, string> = ({ background }, image) => {
if (typeof background !== 'string' || !background.length) return

setMetadata(image, 'background', '#' + background)
setMetadata(image, 'background', background)

return '#' + background
return background
}

0 comments on commit d01b446

Please sign in to comment.