Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/core/renderers/satori/plugins/imageSrc.ts
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ export default defineSatoriTransformer([
},
// fix style="background-image: url('')"
{
filter: (node: VNode) => node.props.style?.backgroundImage?.includes('url('),
filter: (node: VNode) => node.props?.style?.backgroundImage?.includes('url('),
transform: async (node: VNode, { e }: OgImageRenderEventContext) => {
// same as the above, need to swap out relative background images for absolute
const backgroundImage = node.props.style!.backgroundImage

0 comments on commit 8706634

Please sign in to comment.