Open hankhero opened 9 years ago
This would be really useful!
Agreed this would be useful. For others looking to work around the window
checking, you can add this hack to whatever module requires http
:
self.window = self;
And with this, window.XMLHttpRequest
will be defined.
for a web-worker, window is unavailable butXMLHttpRequest is available on the global 'self' object