Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
In the recent specification PR (w3c/ServiceWorker#1686), the urlPattern condition accepts URLPatternInput instead of USVString.  This CL adjusted the explanation.

Also, this CL made RouterCondition to have the urlPattern field
for ease of adding other fields as "and" condition.
  • Loading branch information
yoshisatoyanagisawa authored Aug 16, 2023
1 parent 0ac78d7 commit 9c33516
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ dictionary RouterRule {
// Defines when to respond from the source.
dictionary RouterCondition {
};
dictionary RouterUrlPatternCondition : RouterCondition {
// a relative path pattern string usable for URLPattern.
USVString urlPattern;
// https://wicg.github.io/urlpattern/#typedefdef-urlpatterninput
// For a USVString input, a ServiceWorker script's URL is used as a base URL.
URLPatternInput urlPattern;
};
enum RouterSourceEnum { "network" };
Expand Down

0 comments on commit 9c33516

Please sign in to comment.