diff --git a/core/src/utils/notifier.ts b/core/src/utils/notifier.ts index 33f12d8..0ccb27c 100644 --- a/core/src/utils/notifier.ts +++ b/core/src/utils/notifier.ts @@ -10,7 +10,11 @@ const saveNotifications = (args: Array) => { } const notify = async function(addtionalMessage: string) { - const [pushPlatform, pushToken] = sstore.get('notifier') + const notifyConf = sstore.get('notifier') + if (!notifyConf?.length) { + return + } + const [pushPlatform, pushToken] = notifyConf const content = `${notifications.join(`
`)}
${ addtionalMessage.replace(/\n/g, '
').replace(/\s/g, ' ') }`