mirror of
https://github.com/wavded/js-shapefile-to-geojson
synced 2024-11-23 14:34:54 +00:00
Update to file handling for Safari compatibility
PR: https://github.com/wavded/js-shapefile-to-geojson/pull/26
This commit is contained in:
commit
9e768b8608
2
dbf.js
2
dbf.js
@ -56,7 +56,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var DBF = function(url, callback){
|
var DBF = function(url, callback){
|
||||||
if (!!url.lastModifiedDate)
|
if (!!(url.lastModifiedDate || url.lastModified))
|
||||||
this.handleFile(url, callback);
|
this.handleFile(url, callback);
|
||||||
else
|
else
|
||||||
this.handleUri(url, callback);
|
this.handleUri(url, callback);
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
var o = typeof o == "string" ? {shp: o} : o
|
var o = typeof o == "string" ? {shp: o} : o
|
||||||
this.callback = callback
|
this.callback = callback
|
||||||
|
|
||||||
if (!!o.shp.lastModifiedDate)
|
if (!!(o.shp.lastModifiedDate || o.shp.lastModified))
|
||||||
this.handleFile(o);
|
this.handleFile(o);
|
||||||
else
|
else
|
||||||
this.handleUri(o);
|
this.handleUri(o);
|
||||||
|
Loading…
Reference in New Issue
Block a user