Plugin Directory

Changeset 715525


Ignore:
Timestamp:
05/20/2013 09:59:51 AM (13 years ago)
Author:
mbence
Message:

Small js timeout fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-livephp/trunk/wp-live.js

    r705501 r715525  
    8989            if (xhr.readyState == 4) {
    9090                var restart = new Date() * 1;
    91                 if (xhr.status == 200) {
     91                if (xhr.responseText != '' && xhr.status == 200) {
    9292                    var re = JSON.parse(xhr.responseText);
    9393
     
    113113                LivePhp.start = restart;
    114114                setTimeout(LivePhp.heartbeat, LivePhp.interval);
    115             }           
     115            }
    116116        }
    117117        xhr.open("GET", LivePhp.url + '?s=' + start, true);
Note: See TracChangeset for help on using the changeset viewer.