Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Not working? Did you `npm install` first?
var PNotify = require('pnotify/dist/umd/PNotify').default;
document.getElementById('button1').addEventListener('click', function () {
PNotify.notice({
title: 'Yay!',
text: 'It works!'
});
});
document.getElementById('button2').addEventListener('click', function () {
require('pnotify/dist/umd/PNotifyConfirm');
PNotify.notice({
title: 'Yay!',
text: 'It works!',
modules: {
Confirm: {