Skip to content

Commit 14016c7

Browse files
alxhubmatsko
authored andcommitted
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
1 parent 47caebf commit 14016c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-worker/src/push.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class SwPush {
4343

4444
const workerDrivenSubscriptions = <Observable<PushSubscription|null>>(op_switchMap.call(
4545
this.pushManager, (pm: PushManager) => pm.getSubscription().then(sub => { return sub; })));
46-
this.subscription = obs_merge.call(workerDrivenSubscriptions, this.subscriptionChanges);
46+
this.subscription = obs_merge(workerDrivenSubscriptions, this.subscriptionChanges);
4747
}
4848

4949
requestSubscription(options: {serverPublicKey: string}): Promise<PushSubscription> {

0 commit comments

Comments
 (0)