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