Skip to content

Commit c6d2201

Browse files
committed
Add uri param in browser_example callback.
1 parent c03cef9 commit c6d2201

File tree

1 file changed

+3
-3
lines changed
  • examples/browser_example/src

1 file changed

+3
-3
lines changed

examples/browser_example/src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ export default class App extends Component {
4141
}
4242

4343
componentDidMount() {
44-
this._unsubscribeFromBranch = branch.subscribe(({ error, params }) => {
44+
this._unsubscribeFromBranch = branch.subscribe(({ error, params, uri }) => {
4545
if (error) {
46-
console.error("Error from Branch: " + error);
46+
console.error(`Error from Branch opening ${JSON.stringify(uri)}: ${error}`);
4747
return;
4848
}
4949

50-
console.log("Branch params: " + JSON.stringify(params));
50+
console.log(`Branch params for ${JSON.stringify(uri)}: ${JSON.stringify(params)}`);
5151

5252
if (!params['+clicked_branch_link']) {
5353
if (!!params['+non_branch_link']) {

0 commit comments

Comments
 (0)