Skip to content

Commit

Permalink
chore(rxjs): change import of of operator
Browse files Browse the repository at this point in the history
Use the pipeable import for `of` operator instead
of the monkey patching one.

Closes DethAriel#95
  • Loading branch information
gkaran committed Apr 26, 2018
1 parent 07ac29f commit df62298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recaptcha/recaptcha-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('recaptcha-language');

Expand All @@ -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 */
Expand Down

0 comments on commit df62298

Please sign in to comment.