WebExtensionMatchPattern.matchesUrl

Matches the matchPattern against the specified URL with options.

class WebExtensionMatchPattern
bool
matchesUrl

Parameters

url string

The URL to match against the pattern.

options webkit.types.WebExtensionMatchPatternOptions

The #WebKitWebExtensionMatchPatternOptions use while matching.

Return Value

Type: bool

Whether the pattern matches the specified URL.