From eca822b756716d4588db509e482665ee924ea751 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Thu, 26 Oct 2017 14:23:26 -0700 Subject: [PATCH] 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 --- packages/service-worker/src/push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service-worker/src/push.ts b/packages/service-worker/src/push.ts index e64bff11db..845a886207 100644 --- a/packages/service-worker/src/push.ts +++ b/packages/service-worker/src/push.ts @@ -43,7 +43,7 @@ export class SwPush { const workerDrivenSubscriptions = >(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 {