Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Fix issue in documentation where 'this' would be bound incorrectly
Browse files Browse the repository at this point in the history
#185

Co-authored-by: Alexander Smith <amsmith@uber.com>
  • Loading branch information
2 people authored and fusion-bot[bot] committed Mar 1, 2019
1 parent 8603320 commit 35aef73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import {FetchToken} from 'fusion-tokens';
export default function() {
const app = new App();
app.register(UniversalEventsToken, UniversalEvents);
__BROWSER__ && app.register(FetchToken, window.fetch);
__BROWSER__ && app.register(FetchToken, window.fetch.bind(window));
return app;
}
```
Expand All @@ -103,7 +103,7 @@ The plugin. Provides the [service API](#service-api). Typically should be regist
```js
import {FetchToken} from 'fusion-tokens';
// ...
__BROWSER__ && app.register(FetchToken, window.fetch);
__BROWSER__ && app.register(FetchToken, window.fetch.bind(window));
```

**Required. Browser-only.** See [https://github.com/fusionjs/fusion-tokens#fetchtoken](https://github.com/fusionjs/fusion-tokens#fetchtoken)
Expand Down

0 comments on commit 35aef73

Please sign in to comment.