diff --git a/leaflet.shpfile.js b/leaflet.shpfile.js index 1b1670c..ddaba44 100644 --- a/leaflet.shpfile.js +++ b/leaflet.shpfile.js @@ -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);'));