topDomains property
The rule will only match network requests when the associated top-level
frame's domain matches one from the list of topDomains. If
the list is omitted, the rule is applied to requests associated with all
top-level frame domains. An empty list is not allowed.
Notes:
- Sub-domains like "a.example.com" are also allowed.
- The entries must consist of only ascii characters.
- Use punycode encoding for internationalized domains.
- Sub-domains of the listed domains are also matched.
- For requests with no associated top-level frame (e.g. ServiceWorker initiated requests, the request initiator's domain is considered instead.
Implementation
List<String>? get topDomains => _wrapped.topDomains?.toDart
.cast<JSString>()
.map((e) => e.toDart)
.toList();