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

Commit

Permalink
Fix browser instance instructions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
haadcode committed May 7, 2016
1 parent 51b06b2 commit a16fd25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ You can use [npmcdn](https://npmcdn.com/) to get the latest built version, like
<script src="https://npmcdn.com/ipfs-api/dist/index.js"></script>
```

This will export the `ipfsAPI` constructor on the `window` object, such that:
This will export the `IpfsApi` constructor on the `window` object, such that:

```
var ipfs = window.ipfsAPI('localhost', '5001')
var ipfs = window.IpfsApi('localhost', '5001')
```

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:

```
var ipfs = window.ipfsAPI()
var ipfs = window.IpfsApi()
```

## CORS
Expand Down

0 comments on commit a16fd25

Please sign in to comment.