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 @@ -46,8 +46,12 @@ export class AppInsightsConfig implements Microsoft.ApplicationInsights.IConfig
46
46
@Injectable ( )
47
47
export class AppInsightsService implements IAppInsights {
48
48
49
- context : Microsoft . ApplicationInsights . ITelemetryContext ;
50
- queue : Array < ( ) => void > ;
49
+ get context ( ) : Microsoft . ApplicationInsights . ITelemetryContext {
50
+ return AppInsights . context ;
51
+ }
52
+ get queue ( ) : Array < ( ) => void > {
53
+ return AppInsights . queue
54
+ }
51
55
config : AppInsightsConfig ;
52
56
53
57
constructor (
@@ -242,9 +246,6 @@ export class AppInsightsService implements IAppInsights {
242
246
this . stopTrackPage ( event . url ) ;
243
247
} ) ;
244
248
}
245
-
246
- this . queue = AppInsights . queue ;
247
- this . context = AppInsights . context ;
248
249
} catch ( ex ) {
249
250
console . warn ( 'Angular application insights Error [downloadAndSetup]: ' , ex ) ;
250
251
}
You can’t perform that action at this time.
0 commit comments