mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Avoid warning
This commit is contained in:
parent
1a7db7f363
commit
e55c950f68
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue