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

Allow socket messsages from live server

This commit is contained in:
Daniel 2021-12-03 16:09:04 -03:00
parent 6073004695
commit bdb529be28
4 changed files with 64 additions and 1 deletions

View file

@ -1339,6 +1339,11 @@ function avideoModalIframeRemove() {
}
function avideoResponse(response) {
console.log('avideoResponse', response);
if(typeof response == 'string'){
response = JSON.parse(response);
}
console.log('avideoResponse', response);
if (response.error) {
if (!response.msg) {
response.msg = 'Error';