diff --git a/src/notification/pushover.ts b/src/notification/pushover.ts index 84689bf459..5823d4a973 100644 --- a/src/notification/pushover.ts +++ b/src/notification/pushover.ts @@ -19,14 +19,16 @@ export function sendPushoverNotification(link: Link, store: Store) { ? { message: link.cartUrl ? link.cartUrl : link.url, priority: pushover.priority, - title: Print.inStock(link, store) + title: Print.inStock(link, store), + ...(link.screenshot && {file: `./${link.screenshot}`}) } : { expire: pushover.expire, message: link.cartUrl ? link.cartUrl : link.url, priority: pushover.priority, retry: pushover.retry, - title: Print.inStock(link, store) + title: Print.inStock(link, store), + ...(link.screenshot && {file: `./${link.screenshot}`}) }; push.send(message, (error: Error) => {