Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
notifyError(msg: string, args: any[]) {
Notification.notify({
type: "danger",
title: "An Error Occurred",
content: msg,
duration: 0
});
},
alerts.forEach(element => {
if (element.notify) {
Notification.notify({
type: element.type,
title: element.title,
content: element.content
})
element.notify = false
}
})
}