Fixed toast dismiss issue

This commit is contained in:
RemixDev 2020-07-27 23:37:50 +02:00
parent 35edbb7aa7
commit 18136a071e
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@ export const toast = function(msg, icon = null, dismiss = true, id = null) {
if (id){
let toastClasses = document.querySelector(`div.toastify[toast_id=${id}]`).classList
if (toastClasses){
dismissable = toastClasses.indexOf('dismissable') != -1
dismissable = Array.from(toastClasses).indexOf('dismissable') != -1
}
}
if (toastObj && dismissable) {