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

window not defined in web workers · Issue #104 · developit/unfetch · GitHub

Repository navigation

window not defined in web workers #104

Description

The problem seems to be in browsers.js:

module.exports = window.fetch || (window.fetch = require('unfetch').default || require('unfetch'));

And I think this could be solved by replacing window with global?

Activity

  1. developit commented on Jan 15, 2019

    Owner

    global is also not defined. We can use `self.

  2. eric-burel commented on Sep 14, 2020

    I hit the same issue when building from TypeScript, should I use a fork with this PR merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL