Skip to content

Commit

Permalink
typo fix isArrayBufer -> isArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
eastcoastcoder authored Feb 16, 2018
1 parent 21dde12 commit 7b4a68b
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 7b4a68b

Please sign in to comment.