style(notification): update desktop look and feel

This commit is contained in:
Jef LeCompte
2020-12-15 00:35:20 -05:00
parent 64898b8ae3
commit 8fdfa4d57c
+6
View File
@@ -1,6 +1,7 @@
import {Link, Store} from '../store/model';
import {Print, logger} from '../logger';
import {config} from '../config';
import {join} from 'path';
import notifier from 'node-notifier';
const desktop = config.notifications.desktop;
@@ -10,7 +11,12 @@ export function sendDesktopNotification(link: Link, store: Store) {
logger.debug('↗ sending desktop notification');
(async () => {
notifier.notify({
icon: join(
__dirname,
'../../docs/assets/images/streetmerchant-logo.png'
),
message: link.cartUrl ? link.cartUrl : link.url,
open: link.cartUrl ? link.cartUrl : link.url,
title: Print.inStock(link, store)
});