Closed yoshisatoyanagisawa closed 9 months ago
I think registerRoutes()
is a reasonable rename. In https://github.com/w3c/ServiceWorker/issues/1373#issuecomment-1671123834 @jakearchibald seems to slightly prefer addRoutes()
. Either seem good to me.
Now registerRouter()
has been renamed, and can be called for multiple times.
The issue was originally asked by @sisidovski in https://github.com/w3c/ServiceWorker/issues/1373#issuecomment-1667123029.
To allow 3rd parties use registerRouter() to handle something, allowing registerRouter to be called multiple times was suggested. In the discussion in https://github.com/w3c/ServiceWorker/issues/1373, people are roughly agreed on allowing to call the registration function multiple times. However, renaming the function name was suggested there.