We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a5f12 commit 05d1a9aCopy full SHA for 05d1a9a
projects/core/src/lib/interruptsource.ts
@@ -27,7 +27,7 @@ export abstract class InterruptSource {
27
// If the current zone is the 'angular' zone (a.k.a. NgZone) then re-enter this method in its parent zone
28
// The parent zone is usually the '<root>' zone but it can also be 'long-stack-trace-zone' in debug mode
29
// In tests, the current zone is typically a 'ProxyZone' created by async/fakeAsync (from @angular/core/testing)
30
- if (Zone.current.get('isAngularZone') === true) {
+ if (typeof Zone !== 'undefined' && Zone.current.get('isAngularZone') === true) {
31
Zone.current.parent.run(() => this.attach());
32
return;
33
}
0 commit comments