Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.getElementById('button2').addEventListener('click', function () {
require('pnotify/dist/umd/PNotifyConfirm');
PNotify.notice({
title: 'Yay!',
text: 'It works!',
modules: {
Confirm: {
confirm: true
}
}
});
});