MediaWiki:Wikiminiatlas.js: Difference between revisions

no edit summary
(JSON does not exist in IE8 and below!)
No edit summary
Line 278: Line 278:
     clist.lonright = coord_list[ineg].lon;
     clist.lonright = coord_list[ineg].lon;
     }
     }
     if(JSON) {
     if( typeof(JSON) !== "undefined" ) {
     mes.postMessage( JSON.stringify(clist), document.location.protocol+'//toolserver.org' );
     mes.postMessage( JSON.stringify(clist), document.location.protocol+'//toolserver.org' );
     if( kml !== null ) {
     if( kml !== null ) {
Line 512: Line 512:


       // already got a request message
       // already got a request message
       if( mes !== null && kml.ways.length > 0 && JSON ) {
       if( mes !== null && kml.ways.length > 0 && typeof(JSON) !== "undefined" ) {
       mes.postMessage( JSON.stringify(kml), document.location.protocol+'//toolserver.org' );
       mes.postMessage( JSON.stringify(kml), document.location.protocol+'//toolserver.org' );
       }
       }
Anonymous user