Skip to content

Commit

Permalink
Merge pull request #75 from elliots/patch-1
Browse files Browse the repository at this point in the history
fix tiny bug checking if web worker is available
  • Loading branch information
DanielJDufour authored Jul 28, 2023
2 parents 0c70676 + c5c7edc commit eee3875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class GeoRaster {
constructor(data, metadata, debug) {
if (debug) console.log('starting GeoRaster.constructor with', data, metadata);

this._web_worker_is_available = typeof window !== 'undefined' && window.Worker !== 'undefined';
this._web_worker_is_available = typeof window !== 'undefined' && typeof window.Worker !== 'undefined';
this._blob_is_available = typeof Blob !== 'undefined';
this._url_is_available = typeof URL !== 'undefined';

Expand Down

0 comments on commit eee3875

Please sign in to comment.