Skip to content

Commit

Permalink
fix: removed empty promise error in initsession
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Sep 6, 2017
1 parent 12303e1 commit f319a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Branch.prototype.disableGlobalListenersWarnings = function () {
var runOnce = true
Branch.prototype.initSession = function (deepLinkDataListener) {
// handle double init from onResume on iOS
if (!runOnce) return
if (!runOnce) return new Promise(function (resolve, reject) {})
runOnce = (deviceVendor.indexOf('Apple') < 0)

// private method to filter out +clicked_branch_link = false in deep link callback
Expand Down

0 comments on commit f319a59

Please sign in to comment.