- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Wed, 12 Jul 2023 01:22:44 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 12 July 2023 08:22:49 UTC
@yoshisatoyanagisawa commented on this pull request.
> + <dfn method for="InstallEvent"><code>registerRouter(|rules|)</code></dfn> method *must* run these steps:
+
+ 1. Let |routerRules| be a list of {{RouterRule}} dictionaries.
+ 1. If |rules| is a {{RouterRule}} dictionary:
+ 1. Run [=VerifyRouterRule=] algorithm with |rules|.
+ 1. Append |rules| to |routerRules|.
+ 1. If |rules| is a sequence of {{RouterRule}} dictionaries.
+ 1. for each |rule| in |rules|:
+ 1. If running [=VerifyRouterRule=] algorithm with |rule| returns false, <a>throw</a> a <code>TypeError</code>.
+ 1. Append |rule| to |routerRules|.
+ 1. Set |routerRules| to [=/service worker=]'s [=static router rules object=].
+
+ <section>
+ <h5 id="verify-router-rule-algorithm"><dfn>VerifyRouterRule</dfn></h5>
+ : Input
+ :: |rule|, RouterRule
done.
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1686#discussion_r1260792790
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/ServiceWorker/pull/1686/review/1525788086@github.com>
Received on Wednesday, 12 July 2023 08:22:49 UTC