File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -626,22 +626,18 @@ <h3>
626
626
global task=] on the [=networking task source=] using |global| to [=reject=] |promise| with
627
627
an {{"InvalidStateError"}} {{DOMException}} and terminate these steps.
628
628
</ li >
629
- < li > Let |sw| be |registration|'s [=service worker registration/active worker=].
630
- </ li >
631
629
< li > Let |permission| be [=request permission to use=] "push".
632
630
</ li >
633
631
< li > If |permission| is {{PermissionState/"denied"}}, [=queue a global task=] on the [=user
634
632
interaction task source=] using |global| to [=reject=] |promise| with a
635
633
{{"NotAllowedError"}} {{DOMException}} and terminate these steps.
636
634
</ li >
637
- < li > If |sw| is already subscribed, run the following sub-steps :
635
+ < li > If |registration| has a < a > push subscription </ a > :
638
636
< ol >
639
- < li > Try to retrieve the < a > push subscription</ a > associated with the |sw|. If there is
640
- an error, [=queue a global task=] on the [=networking task source=] using |global| to
641
- [=reject=] |promise| with an {{"AbortError"}} {{DOMException}} and terminate these
642
- steps.
643
- </ li >
644
- < li > Let |subscription| be the < a > push subscription</ a > associated with |sw|.
637
+ < li > Let |subscription| be the result of obtaining |registration|'s < a > push
638
+ subscription</ a > . If there is an error, [=queue a global task=] on the [=networking
639
+ task source=] using |global| to [=reject=] |promise| with an {{"AbortError"}}
640
+ {{DOMException}} and terminate these steps.
645
641
</ li >
646
642
< li > Compare the |options| argument with the `options` attribute of |subscription|. The
647
643
contents of {{BufferSource}} values are compared for equality rather than
You can’t perform that action at this time.
0 commit comments