Skip to content

Commit 107f02d

Browse files
committed
Fix access to backburner
`run.backburner` is deprecated and creates errors now when used. This commit fixes the issue by using the `_backburner` if it exists (which is the case in recent versions of Ember), or `run.backbackburner` if not (which is the case in older versions of Ember).
1 parent 21ae9f7 commit 107f02d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ember/addon/instance-initializers/sentry-performance.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ export function initialize(appInstance: ApplicationInstance): void {
2929
}
3030

3131
function getBackburner() {
32+
if (_backburner) {
33+
return _backburner;
34+
}
35+
3236
if (run.backburner) {
3337
return run.backburner;
3438
}
35-
return _backburner;
3639
}
3740

3841
function getTransitionInformation(transition: any, router: any) {

0 commit comments

Comments
 (0)