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

Commit

Permalink
Merge pull request #265 from haadcode/master
Browse files Browse the repository at this point in the history
Fix browser instance instructions in README
  • Loading branch information
dignifiedquire committed May 7, 2016
2 parents 51b06b2 + a16fd25 commit 5fe59e4
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 5fe59e4

Please sign in to comment.