@@ -19,14 +19,14 @@ export type PayloadWithIdentity = {
19
19
} ;
20
20
21
21
export class CallbackManager {
22
- private _getIdentity : ( isForCallback : boolean ) => Identity | null | undefined ;
22
+ private _getIdentity : ( ) => Identity | null | undefined ;
23
23
private _logger : Logger ;
24
24
private _sdk : SdkBase ;
25
25
private _productName : string ;
26
26
constructor (
27
27
sdk : SdkBase ,
28
28
productName : string ,
29
- getIdentity : ( isForCallback : boolean ) => Identity | null | undefined ,
29
+ getIdentity : ( ) => Identity | null | undefined ,
30
30
logger : Logger
31
31
) {
32
32
this . _productName = productName ;
@@ -44,7 +44,7 @@ export class CallbackManager {
44
44
this . safeRunCallback ( c , EventType . SdkLoaded , { } ) ;
45
45
if ( this . _sentInit )
46
46
this . safeRunCallback ( c , EventType . InitCompleted , {
47
- identity : this . _getIdentity ( true ) ?? null ,
47
+ identity : this . _getIdentity ( ) ?? null ,
48
48
} ) ;
49
49
}
50
50
return Array . prototype . push . apply ( this . _sdk . callbacks , args ) ;
@@ -56,7 +56,7 @@ export class CallbackManager {
56
56
57
57
const enrichedPayload = {
58
58
...payload ,
59
- identity : this . _getIdentity ( true ) ?? null ,
59
+ identity : this . _getIdentity ( ) ?? null ,
60
60
} ;
61
61
for ( const callback of this . _sdk . callbacks ) {
62
62
this . safeRunCallback ( callback , event , enrichedPayload ) ;
0 commit comments