From df62298d48db7d27857e7d782af9fb6c7b1afd8f Mon Sep 17 00:00:00 2001 From: gkaran Date: Thu, 26 Apr 2018 05:04:34 -0400 Subject: [PATCH] chore(rxjs): change import of `of` operator Use the pipeable import for `of` operator instead of the monkey patching one. Closes #95 --- recaptcha/recaptcha-loader.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recaptcha/recaptcha-loader.service.ts b/recaptcha/recaptcha-loader.service.ts index dea4911..25af485 100644 --- a/recaptcha/recaptcha-loader.service.ts +++ b/recaptcha/recaptcha-loader.service.ts @@ -6,9 +6,9 @@ import { Optional, PLATFORM_ID, } from '@angular/core'; -import 'rxjs/add/observable/of'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Observable } from 'rxjs/Observable'; +import { of } from 'rxjs/observable/of'; export const RECAPTCHA_LANGUAGE = new InjectionToken('recaptcha-language'); @@ -32,7 +32,7 @@ export class RecaptchaLoaderService { ) { this.language = language; this.init(); - this.ready = isPlatformBrowser(this.platformId) ? RecaptchaLoaderService.ready.asObservable() : Observable.of(); + this.ready = isPlatformBrowser(this.platformId) ? RecaptchaLoaderService.ready.asObservable() : of(); } /** @internal */