File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -164,10 +164,10 @@ export class BatchUploader {
164164 Debug : SDKConfig . isDevelopmentMode ,
165165 ActiveTimeOnSite : _timeOnSiteTimer ?. getTimeInForeground ( ) || 0 ,
166166 IsBackgroundAST : true
167- } ;
167+ } as SDKEvent ;
168168
169- appendUserInfo ( getCurrentUser ( ) , event as SDKEvent ) ;
170- return event as SDKEvent ;
169+ appendUserInfo ( getCurrentUser ( ) , event ) ;
170+ return event ;
171171 }
172172
173173 // Adds listeners to be used trigger Navigator.sendBeacon if the browser
@@ -180,13 +180,14 @@ export class BatchUploader {
180180 const {
181181 _Helpers : { getFeatureFlag } ,
182182 } = this . mpInstance ;
183+ const { AstBackgroundEvents } = Constants . FeatureFlags ;
183184
184- const flagValue = getFeatureFlag ( Constants . FeatureFlags . AstBackgroundEvents ) ;
185+ const flagValue = getFeatureFlag ( AstBackgroundEvents ) ;
185186 if ( flagValue ) {
186187 console . log ( 'Feature flag value:' , flagValue , 'type:' , typeof flagValue ) ;
187188 }
188189
189- if ( getFeatureFlag ( Constants . FeatureFlags . AstBackgroundEvents ) ) {
190+ if ( getFeatureFlag ( AstBackgroundEvents ) ) {
190191 if ( _this . shouldDebounceAndUpdateLastASTTime ( ) ) {
191192 return ;
192193 }
You can’t perform that action at this time.
0 commit comments