File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/ember/addon/instance-initializers Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import ApplicationInstance from '@ember/application/instance';
2
2
import Ember from 'ember' ;
3
3
import { run , _backburner , scheduleOnce } from '@ember/runloop' ;
4
4
import * as Sentry from '@sentry/browser' ;
5
+ import { ExtendedBackburner } from "@sentry/ember/runloop" ;
5
6
import { Span , Transaction , Integration } from '@sentry/types' ;
6
7
import { EmberRunQueues } from '@ember/runloop/-private/types' ;
7
8
import { getActiveTransaction } from '..' ;
@@ -28,11 +29,19 @@ export function initialize(appInstance: ApplicationInstance): void {
28
29
}
29
30
}
30
31
31
- function getBackburner ( ) {
32
+ function getBackburner ( ) : Pick < ExtendedBackburner , "on" | "off" > {
33
+ if ( _backburner ) {
34
+ return _backburner ;
35
+ }
36
+
32
37
if ( run . backburner ) {
33
38
return run . backburner ;
34
39
}
35
- return _backburner ;
40
+
41
+ return {
42
+ on ( ) { } ,
43
+ off ( ) { }
44
+ }
36
45
}
37
46
38
47
function getTransitionInformation ( transition : any , router : any ) {
You can’t perform that action at this time.
0 commit comments