Skip to content

Commit

Permalink
style: custom event now outputs blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jan 9, 2017
1 parent c07578c commit bb60a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testbed/www/js.es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ function BranchEvent() {
console.log('Trigger BranchEvent()');

// event name
var event = document.getElementById('custom-action').value;
var event = document.getElementById('custom-action').value || 'blank';

// optional
var metadata = { "custom_dictionary": 123 };
var metadata = { 'custom_dictionary': 123, 'anything': 'everything' };
Branch.userCompletedAction(event, metadata).then(function(res) {
console.log(res);
alert('Response: ' + JSON.stringify(res));
Expand Down
4 changes: 2 additions & 2 deletions testbed/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ function BranchEvent() {
console.log('Trigger BranchEvent()');

// event name
var event = document.getElementById('custom-action').value;
var event = document.getElementById('custom-action').value || 'blank';

// optional
var metadata = { "custom_dictionary": 123 };
var metadata = { 'custom_dictionary': 123, 'anything': 'everything' };
Branch.userCompletedAction(event, metadata).then(function (res) {
console.log(res);
alert('Response: ' + JSON.stringify(res));
Expand Down

0 comments on commit bb60a24

Please sign in to comment.