Skip to content

Commit

Permalink
fix: restore WorkerGlobalScope
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlubner committed Dec 22, 2021
1 parent 0c07a36 commit e27925c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ var getQueryParam = function getQueryParam(name, query) {
};

const isWebWorkerEnvironment = () => {
return typeof WorkerglobalThis !== 'undefined';
return typeof WorkerGlobalScope !== 'undefined';
};

export default {
Expand Down

0 comments on commit e27925c

Please sign in to comment.