Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webclient/javascript/main.js

    r33c6557 reb1ccd6  
    2828
    2929function displayDataSet(data){
     30        if(!Array.isArray(data) && !(data instanceof Object)){
     31                console.log("No data array returned!");
     32                console.log(data);
     33                return;
     34        }
    3035        if(!("lastvalid" in data)){
    3136                        console.log("No last valid values given!");
    … …  
    119124        displayDataGet();
    120125        setInterval(displayDataGet, 10000);
    121        
     126
    122127        $.getJSON("../webservice/tileserver.php?/map.json", mapSetup);
    123128       
Note: See TracChangeset for help on using the changeset viewer.