Skip to content

Commit 63e5ac6

Browse files
authored
Update README.md
1 parent b97cf1f commit 63e5ac6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,14 @@ The `initSession()` method automatically sets an internal deep link hander whose
185185

186186
```js
187187
onDeviceReady: function() {
188-
Branch.initSession().then(function (res) {
189-
console.log(res);
190-
alert('Response: ' + JSON.stringify(res));
191-
}).catch(function (err) {
192-
console.error(err);
193-
alert('Error: ' + JSON.stringify(err));
194-
});;;
188+
Branch.initSession();
189+
},
190+
onResume: function() {
191+
Branch.initSession();
195192
},
196193
initialize: function() {
197194
document.addEventListener('deviceready', onDeviceReady, false);
195+
document.addEventListener('resume', onResume, false);
198196
},
199197
```
200198

0 commit comments

Comments
 (0)