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:
parent
6073004695
commit
bdb529be28
4 changed files with 64 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue