Skip to content

Commit

Permalink
Merge pull request #51 from CDMSmith/gh-pages
Browse files Browse the repository at this point in the history
typo fix isArrayBufer -> isArrayBuffer
  • Loading branch information
knownasilya authored Feb 16, 2018
2 parents 21dde12 + 7b4a68b commit d4f3577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet.shpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ L.Shapefile = L.GeoJSON.extend({
L.Util.setOptions(this, options);
if (typeof cw !== 'undefined') {
/*eslint-disable no-new-func*/
if (!options.isArrayBufer) {
if (!options.isArrayBuffer) {
this.worker = cw(new Function('data', 'cb', 'importScripts("' + this.options.importUrl + '");shp(data).then(cb);'));
} else {
this.worker = cw(new Function('data', 'importScripts("' + this.options.importUrl + '"); return shp.parseZip(data);'));
Expand Down

0 comments on commit d4f3577

Please sign in to comment.