docs: handle generation of custom action sin the workflow pair
This commit is contained in:
@@ -74,6 +74,14 @@ const onGenerateAction = async (customActionEventData: CustomActionEventData) =>
|
|||||||
await handleWrapper(handleGenerateAction, customActionEventData);
|
await handleWrapper(handleGenerateAction, customActionEventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles the generation of a cutom action workflow pair.
|
||||||
|
* @param generator The workflow generator
|
||||||
|
* @param page The active page
|
||||||
|
* @param action The custom action
|
||||||
|
* @param settings The custom action settings
|
||||||
|
* @category BrowserManagement
|
||||||
|
*/
|
||||||
const handleGenerateAction =
|
const handleGenerateAction =
|
||||||
async (generator: WorkflowGenerator, page: Page, {action, settings}: CustomActionEventData) => {
|
async (generator: WorkflowGenerator, page: Page, {action, settings}: CustomActionEventData) => {
|
||||||
await generator.customAction(action, settings, page);
|
await generator.customAction(action, settings, page);
|
||||||
|
|||||||
Reference in New Issue
Block a user