Function RequireActiveBrowser
- RequireActiveBrowser(): ((str, context?) => Promise<boolean>)
Returns ((str, context?) => Promise<boolean>)
The rule function.
- (str, context?): Promise<boolean>
Parameters
str: string
Optional
context: {
[key: string]: unknown;
}
Returns Promise<boolean>
Returns a rule that checks if the frontmost application is a support browser.