Skip to content

Commit

Permalink
fix: update actual branch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aaustin committed Sep 21, 2016
1 parent 7d54a70 commit 89dc1dc
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 89dc1dc

Please sign in to comment.