diff --git a/dbf.js b/dbf.js index 222df9b..a963d89 100644 --- a/dbf.js +++ b/dbf.js @@ -56,7 +56,7 @@ } var DBF = function(url, callback){ - if (!!url.lastModifiedDate) + if (!!(url.lastModifiedDate || url.lastModified)) this.handleFile(url, callback); else this.handleUri(url, callback); diff --git a/shapefile.js b/shapefile.js index 0c999ab..b24a3f4 100644 --- a/shapefile.js +++ b/shapefile.js @@ -69,7 +69,7 @@ var o = typeof o == "string" ? {shp: o} : o this.callback = callback - if (!!o.shp.lastModifiedDate) + if (!!(o.shp.lastModifiedDate || o.shp.lastModified)) this.handleFile(o); else this.handleUri(o);