1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Avoid warning

This commit is contained in:
Daniel 2021-07-22 12:36:09 -03:00
parent 1a7db7f363
commit e55c950f68

View file

@ -999,7 +999,7 @@ function avideoAlert(title, msg, type) {
if (typeof msg == 'undefined') {
return false;
}
if (msg !== msg.replace(/<\/?[^>]+(>|$)/g, "")) {//it has HTML
if (typeof msh === 'string' && msg !== msg.replace(/<\/?[^>]+(>|$)/g, "")) {//it has HTML
avideoAlertHTMLText(title, msg, type);
} else {
swal(title, msg, type);