Skip to content

Commit

Permalink
docs: style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Nov 18, 2016
1 parent cd31ebc commit 8f71e9c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
Branch.initSession().then(function(res) {
console.log(res);
}).catch(function(err) {
console.error(err);
alert('Error: ' + JSON.stringify(err));
});
```
</details>
Expand Down Expand Up @@ -451,7 +451,7 @@
$ipad_url: 'www.ipad.com',
more_custom: 'data',
even_more_custom: true,
this_is_custom: 41231
this_is_custom: 321
};
branchUniversalObj.generateShortUrl(analytics, properties).then(function(res) {
Expand Down Expand Up @@ -601,11 +601,11 @@
- <details><summary>Example (set)</summary>
```js
var userId = "email_or_id";
var userId = 'email_or_id';
Branch.setIdentity(userId).then(function(res) {
alert(JSON.stringify(res));
alert('Response: ' + JSON.stringify(res));
}).catch(function(err) {
alert(JSON.stringify(err));
alert('Error: ' + JSON.stringify(err));
});
```
</details>
Expand Down Expand Up @@ -677,6 +677,7 @@
alert('Error: ' + JSON.stringify(err));
});
```
```js
var amount = 10;
Branch.redeemRewards(amount).then(function(res) {
Expand All @@ -696,6 +697,7 @@
alert('Error: ' + JSON.stringify(err));
});
```
```js
Branch.loadRewards().then(function(res) {
alert('Response: ' + JSON.stringify(res));
Expand Down

0 comments on commit 8f71e9c

Please sign in to comment.