Skip to content

Commit

Permalink
Update README after comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregoire Weber committed Mar 24, 2017
1 parent 8f2f114 commit de80d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var barracks = new Barracks({

#### Custom Barracks SDK instance :
You can specify two optionnals attributes to the Barracks SDK if you want to use a proxy for your devices.
With ```baseURL``` you can give the address of your proxy that use use to contact Barracks, and the ```allowSelfSigned``` boolean allow you to have a self signed SSL certificate on your proxy server.
With ```baseURL``` you can give the address of your proxy that use to contact Barracks, and the ```allowSelfSigned``` boolean allow you to have a self signed SSL certificate on your proxy server.
Default value of ```baseURL``` is ```https://app.barracks.io```.
Default value of ```allowSelfSigned``` is ```false```.

Expand Down Expand Up @@ -133,9 +133,9 @@ Where the ```download(filePath)``` function is a shortcut for ```barracks.downlo

Once you have the response from checkUpdate, you'll be able to download file for all packages that are available for the device (packages that are in the ```available```, and ```changed``` lists of the response).

You have two choices to download the files, both method are showed in the following example.
First method is to use the download function from the packages object directly.
Second one is to use the barracks.donwloadPackage() method.
As showed in the following example, you can
* Use the download function from the packages object directly.
* Use the barracks.donwloadPackage() method.

```js
var packages = [
Expand Down

0 comments on commit de80d9f

Please sign in to comment.