- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Mon, 17 Jul 2023 20:17:11 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 July 2023 03:17:16 UTC
@yoshisatoyanagisawa commented on this pull request. > + }; + + enum RouterSourceEnum { "network" }; + </pre> + + Each {{RouterCondition/urlPattern}} object has an associated <dfn>hostname component</dfn>, a [=urlpattern/component=], which is initially unset. + + <section> + <h4 id="register-router-method">{{InstallEvent/registerRouter(rules)|event.registerRouter(rules)}}</h4> + + {{InstallEvent/registerRouter(rules)}} registers this service worker the rules to offload simple tasks that the fetch handler does. + + <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: done. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1686#discussion_r1266146189 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1686/review/1534066006@github.com>
Received on Tuesday, 18 July 2023 03:17:16 UTC