FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

window -> self by developit · Pull Request #109 · developit/unfetch · GitHub

Repository navigation

window -> self - #109

Merged
developit merged 1 commit into
masterfrom
self-webworker
Sep 29, 2020
Merged

developit merged 1 commit into
masterfrom
self-webworker

Conversation

developit commented Jan 15, 2019 •
edited
Loading

Copy link
Copy Markdown
Owner

Replace window with self to allow use in Web Workers.
The main library was already doing this, just not isomorphic-unfetch.

Fixes #104.

Replace `window` with `self` to allow use in Web Workers.

yanivefraim commented Jul 23, 2020 •
edited
Loading

Copy link
Copy Markdown

Any chance to merge this? We need isomorphic-unfetch on a web-worker. Thanks!

Copy link
Copy Markdown
Owner Author

This fix was released in 4.2.0. Sorry for the super long wait!

bricker commented Jan 6, 2021

Copy link
Copy Markdown

For the record (and for googlers), this change breaks this library in a React Native environment with error "Can't find variable: self".

Quick fix is to roll back to isomorphic-unfetch 3.0.0.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

window not defined in web workers

3 participants


Back | FazBrowse Home | New Git URL