From a16fd25132cdbce2ce49117b733c916be8f953c4 Mon Sep 17 00:00:00 2001 From: haad Date: Sat, 7 May 2016 11:20:47 +0200 Subject: [PATCH] Fix browser instance instructions in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86f5f003c..97330a34e 100644 --- a/README.md +++ b/README.md @@ -43,16 +43,16 @@ You can use [npmcdn](https://npmcdn.com/) to get the latest built version, like ``` -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