Skip to content

Commit a1420e8

Browse files
committed
doc in README
1 parent 43f1f18 commit a1420e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ fetch('//offline-news-api.herokuapp.com/stories')
4040
});
4141
```
4242

43+
If you don't want a global:
44+
45+
```js
46+
var fetch = require('isomorphic-fetch/safe');
47+
typeof global.fetch === 'undefined'
48+
```
49+
4350
## License
4451

4552
All open source code released by FT Labs is licenced under the MIT licence. Based on [the fine work by](https://github.com/github/fetch/pull/31) **[jxck](https://github.com/Jxck)**.

0 commit comments

Comments
 (0)