diff --git a/ts/util/getStoryBackground.ts b/ts/util/getStoryBackground.ts index 53fb02dc1..93cd02b2e 100644 --- a/ts/util/getStoryBackground.ts +++ b/ts/util/getStoryBackground.ts @@ -33,6 +33,10 @@ export function getStoryBackground(attachment?: AttachmentType): string { return getBackgroundColor(attachment.textAttachment); } + if (attachment.screenshot && attachment.screenshot.url) { + return `url("${attachment.screenshot.url}")`; + } + if (attachment.url) { return `url("${attachment.url}")`; }