From 3b90bbbe5d751003a39823e9113eaee8cbfcf1a2 Mon Sep 17 00:00:00 2001 From: Andrew Mackrodt Date: Sun, 27 Sep 2020 20:01:08 +0100 Subject: [PATCH] fix(notification): discord false triggers (#346) --- src/notification/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification/notification.ts b/src/notification/notification.ts index c7f5496..95b8b3f 100644 --- a/src/notification/notification.ts +++ b/src/notification/notification.ts @@ -38,7 +38,7 @@ export function sendNotification(link: Link, store: Store) { sendDesktopNotification(link, store); } - if (notifications.discord.webHookUrl) { + if (notifications.discord.webHookUrl.length > 0) { Logger.debug('↗ sending discord message'); sendDiscordMessage(link, store); }