Skip to content

Commit

Permalink
RegressionBUGFIX ping YP services
Browse files Browse the repository at this point in the history
  • Loading branch information
shangril authored Oct 24, 2022
1 parent 2fc304a commit c0293f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ function displayRecentlyPlayed(){

function delegate() {

if (yprun&&!stall&&!get_embed()&&document.getElementById('yp-services-content')!=null){
if (yprun&&!stall&&document.getElementById('yp-services-content')!=null){

var xhttpyp = new XMLHttpRequest();
if (ypcurrentindexretries!=ypindex){
Expand Down Expand Up @@ -1340,7 +1340,7 @@ function update_cart(){
//yp stuff
var ypping=true;

var myfunc;
var myfunc=null;
var yprun=true;
var ypindex=0;
var appendypreq='';
Expand Down Expand Up @@ -1853,7 +1853,9 @@ function init_page() {
//yp stuff
ypping=true;
nosocialupdate=false;

if (myfunc!=null){
clearInterval(myfunc);
}
myfunc=null;
yprun=true;
ypindex=0;
Expand Down Expand Up @@ -1934,7 +1936,7 @@ function init_page() {
<?php if ((count($creroypservices)>0)&&(!((true==$embed)||(false!==$embed)))){ ?>
//yp stuff

if (!get_embed()&&get_embed_value()!=''){yprun=true;myfunc=setInterval (delegate, 1000);}
yprun=true;myfunc=setInterval (delegate, 1000);

<?php } ?>

Expand Down

0 comments on commit c0293f3

Please sign in to comment.