Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Fails when called from worker #29

Open
jackkleeman opened this issue Mar 12, 2017 · 1 comment
Open

Fails when called from worker #29

jackkleeman opened this issue Mar 12, 2017 · 1 comment

Comments

@jackkleeman
Copy link

This function seems to expect document and window globals to exist, giving a runtime error when called in a web worker. As far as I know, webrtc support does not exist within a worker, so a simple fix is to check if document and window exist, and if not then return false for all relevant booleans.

@daviddias
Copy link

Yeah, this is the last task to get ipfs/js-ipfs#725 done too :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants