Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed error catching on Opera 11.5

  • Loading branch information...
commit 5924d5d028843aac63a6bbb0cadc53ce97ef9dd1 1 parent fd659bb
Paddy O'Reilly authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.html
View
5 index.html
@@ -97,7 +97,8 @@
clearTimeout(_updateTimer);
document.getElementById('noTrains').style.display = 'none';
- if(_data.station ==''){
+ if(_data.station =='' || _data.station ==null){
+
// Set Station Name and Link
document.getElementById('irish').innerHTML = "Socraigh an Stáisiúin";
document.getElementById('english').innerHTML = "Set Station";
@@ -105,7 +106,7 @@
_updateTimer = setTimeout( _XHRFeed, 1000*_data.interval );
return false;
}
-
+
xhr = new XMLHttpRequest();
d = new Date().getTime();
xhr.open( 'GET', _data.feed + _data.station + '&rand=' + d, true );
Please sign in to comment.
Something went wrong with that request. Please try again.