Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Beans.get(PlatformState).whenState(PlatformStates.Starting).then(() => {
Beans.register(NgZone, {useValue: this._zone});
Beans.registerDecorator(MessageClient, {useClass: AngularZoneMessageClientDecorator});
});
Beans.get(PlatformState).whenState(PlatformStates.Starting).then(() => {
Beans.register(NgZone, {useValue: this._zone});
Beans.registerDecorator(MessageClient, {useClass: AngularZoneMessageClientDecorator});
Beans.registerDecorator(PlatformMessageClient, {useClass: AngularZoneMessageClientDecorator});
});