Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import PNotify from 'pnotify'
import 'pnotify/dist/pnotify.desktop'
PNotify.prototype.options.styling = 'fontawesome'
PNotify.desktop.permission()
const success = (message) => {
new PNotify({ // eslint-disable-line no-new
title: 'Success',
type: 'success',
text: message
})
}
const error = (message) => {
new PNotify({ // eslint-disable-line no-new
title: 'Error',
type: 'error',
text: message
})
}