Skip to content

Commit

Permalink
Merge pull request #221 from BranchMetrics/fix-actual-branchjs
Browse files Browse the repository at this point in the history
fix: update actual branch.js
  • Loading branch information
aaustin authored Sep 21, 2016
2 parents 7d54a70 + 89dc1dc commit 6891744
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions www.es6/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ Branch.prototype.setMixpanelToken = function(token) {

};

/**
* Set debug mode to simulate fresh installs.
* NOTE: This must be called before initSession
*
* @param (Boolean) isEnabled. Default = false
*
* @return (Promise)
*/
Branch.prototype.setDebug = function (isEnabled) {

isEnabled = (typeof isEnabled !== 'boolean') ? false : isEnabled;

this.debugMode = isEnabled;

return execute('setDebug', [isEnabled]);

};

/**
* Retrieves the install session parameters.
*
Expand Down

0 comments on commit 6891744

Please sign in to comment.