Open viper4gh opened 4 years ago
In Chrome it looks:
With the workaround the table is working, but it does not solve the root cause where the bad data come from. Further the tracklist worker stops, what it not should do. It should run till it gets data from DS.
After some investigation: Firefox is not entering the catch statement after the xmlhttp.send() if it is not getting a reply: https://github.com/eckhchri/pcars-ds-liveview/blob/master/receive_ds_data.js#L244 Chrome enters the catch.
Possible solution: move or copy the complete switch statement (https://github.com/eckhchri/pcars-ds-liveview/blob/master/receive_ds_data.js#L247) into an else statement of "if (xmlhttp.readyState==4 && xmlhttp.status==200)" (https://github.com/eckhchri/pcars-ds-liveview/blob/master/receive_ds_data.js#L266)
If you open liveview in Firefox the track table is not working if the DS is not reachable. It throws the following error: