title: sweetAlert - not calling function on confirm button click
body: <p>I added following alert by following <a href="https://sweetalert2.github.io/" rel="nofollow noreferrer">this</a> but no functions are getting called when I click cancel or confirm buttons, am I doing something wrong? My master page has link to css: <code>&lt;link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet" /&gt;</code>   </p>
  
  <pre><code>            sweetAlert({
                  html: true,
                  title: 'Error',
                  text: "test",
                  type: 'warning',
                  showCancelButton: true,
                  confirmButtonText: 'Check',            
              }).then((result) =&gt; {
                  if (result.value) {
                      sweetAlert("Yes", "Blah", "info");
                  } else {                   
                      sweetAlert("No", "Blah", "info");
                  }
                  });
  </code></pre>