fix(service-worker): fix improper call of Observable.merge (#19962)

Observable.merge was called using .call() as if it were an operator
and not an Observable factory. This removes the .call() and uses
the factory properly.

PR Close #19962
This commit is contained in:
Alex Rickabaugh 2017-10-26 14:23:26 -07:00 committed by Matias Niemelä
parent 17142a778a
commit eca822b756
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export class SwPush {
const workerDrivenSubscriptions = <Observable<PushSubscription|null>>(op_switchMap.call(
this.pushManager, (pm: PushManager) => pm.getSubscription().then(sub => { return sub; })));
this.subscription = obs_merge.call(workerDrivenSubscriptions, this.subscriptionChanges);
this.subscription = obs_merge(workerDrivenSubscriptions, this.subscriptionChanges);
}
requestSubscription(options: {serverPublicKey: string}): Promise<PushSubscription> {