Answers for "Uncaught (in promise) cancel"

0

Uncaught (in promise) cancel

swal({
  …
}).then(function(json_data) {
  …
}, function(dismiss) {
  if (dismiss === 'cancel') { // you might also handle 'close' or 'timer' if you used those
    // ignore
  } else {
    throw dismiss;
  }
})
Posted by: Guest on September-18-2020

Code answers related to "Uncaught (in promise) cancel"

Code answers related to "Javascript"

Browse Popular Code Answers by Language