Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_create: function () {
let toast = swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 10000
});
let message = {};
message.text = this.options.message;
if (this.options.title) {
message.title = this.options.title;
}
if (this.options.type) {
message.type = this.options.type;
const swalFunction = (...args: [SweetAlertOptions]) => {
if (options) {
const mixed = Swal.mixin(options)
return mixed.fire.apply(mixed, args)
}
return Swal.fire.apply(Swal, args)
}
const swalFunction = (...args: [SweetAlertOptions]) => {
if (options) {
const mixed = Swal.mixin(options);
return mixed.fire.apply(mixed, args);
}
return Swal.fire.apply(Swal, args);
};