Skip to content

Commit f319a59

Browse files
committed
fix: removed empty promise error in initsession
1 parent 12303e1 commit f319a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/branch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Branch.prototype.disableGlobalListenersWarnings = function () {
3838
var runOnce = true
3939
Branch.prototype.initSession = function (deepLinkDataListener) {
4040
// handle double init from onResume on iOS
41-
if (!runOnce) return
41+
if (!runOnce) return new Promise(function (resolve, reject) {})
4242
runOnce = (deviceVendor.indexOf('Apple') < 0)
4343

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

0 commit comments

Comments
 (0)