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:37:59 -03:00
parent e55c950f68
commit 9866ec345f

View file

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