1
0
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:
Marc Harter 2020-02-11 09:00:07 -06:00 committed by GitHub
commit 9e768b8608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
dbf.js
View File

@ -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);

View File

@ -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);