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

Commit 5fe59e4

Browse files
Merge pull request #265 from haadcode/master
Fix browser instance instructions in README
2 parents 51b06b2 + a16fd25 commit 5fe59e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ You can use [npmcdn](https://npmcdn.com/) to get the latest built version, like
4343
<script src="https://npmcdn.com/ipfs-api/dist/index.js"></script>
4444
```
4545

46-
This will export the `ipfsAPI` constructor on the `window` object, such that:
46+
This will export the `IpfsApi` constructor on the `window` object, such that:
4747

4848
```
49-
var ipfs = window.ipfsAPI('localhost', '5001')
49+
var ipfs = window.IpfsApi('localhost', '5001')
5050
```
5151

5252
If you omit the host and port, the api will parse `window.host`, and use this information. This also works, and can be useful if you want to write apps that can be run from multiple different gateways:
5353

5454
```
55-
var ipfs = window.ipfsAPI()
55+
var ipfs = window.IpfsApi()
5656
```
5757

5858
## CORS

0 commit comments

Comments
 (0)