Can call swal() from DoneFunction