Permalink
Browse files

Fixed error catching on Opera 11.5

  • Loading branch information...
Paddy O'Reilly
Paddy O'Reilly committed Oct 20, 2011
1 parent fd659bb commit 5924d5d028843aac63a6bbb0cadc53ce97ef9dd1
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.html
View
@@ -97,15 +97,16 @@
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";
opera.contexts.speeddial.url = "options.html";
_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 );

0 comments on commit 5924d5d

Please sign in to comment.