Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: this.document and this.location.href do not exist in a Web Worker (
#55) * this -> self this.location does not work in a web worker, but self.location does work both in a web worker and in a normal page. * document doesn't exist either * use self which works in both places * polyfilling self.document always works
- Loading branch information