File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,22 @@ Branch.prototype.disableGlobalListenersWarnings = function () {
35
35
disableGlobalListenersWarnings = true
36
36
}
37
37
38
- var previousLinkTimestamp = null
39
38
var runOnce = true
39
+ var previousLinkTimestamp = null
40
40
Branch . prototype . initSession = function ( deepLinkDataListener ) {
41
41
// handle double init from onResume on iOS
42
42
if ( ! runOnce ) return new Promise ( function ( resolve , reject ) { } )
43
43
runOnce = ( deviceVendor . indexOf ( 'Apple' ) < 0 )
44
44
45
45
// private method to filter out +clicked_branch_link = false in deep link callback
46
46
var deepLinkDataParser = function ( deepLinkData ) {
47
+ var timestamp = '+click_timestamp'
47
48
var isBranchLink = '+clicked_branch_link'
48
49
var isNonBranchLink = '+non_branch_link'
49
- var timestamp = '+click_timestamp'
50
50
51
51
var isBranchLinkClick = deepLinkData . hasOwnProperty ( isBranchLink ) && deepLinkData [ isBranchLink ] === true
52
52
var isNonBranchLinkClick = deepLinkData . hasOwnProperty ( isNonBranchLink )
53
- var currentLinkTimestamp = deepLinkData . hasOwnProperty ( timestamp ) ? deepLinkData [ timestamp ] : null
53
+ var currentLinkTimestamp = deepLinkData . hasOwnProperty ( timestamp ) ? deepLinkData [ timestamp ] : Date . now ( )
54
54
55
55
// is +clicked_branch_link' = true || +non_branch_link && !previousLinkTimestamp
56
56
if ( ( isBranchLinkClick || isNonBranchLinkClick ) && currentLinkTimestamp !== previousLinkTimestamp ) {
You can’t perform that action at this time.
0 commit comments