typicode/fetchival

`fetchival.fetch` throws an `Illegal invocation` error

Closed this issue · 2 comments

Tested in Chrome 42, which has native support for fetch and ES6 Promises: http://codepen.io/leonderijke/pen/pJjdxj?editors=001

When calling fetchival('/foo').get(), fetchival.fetch throws an Illegal invocation TypeError.

Running the tests in Chrome 42 gives the same result: all tests fail with TypeError: Illegal invocation.

Thanks for raising this issue.
Should be good with v0.1.2

fetch wasn't called with the right context. I've added .bind(window)

Yes, confirming that this error is fixed. Thanks!