feat: wrapper for url change

This commit is contained in:
karishmas6
2024-06-08 23:02:59 +05:30
parent 8adbdd86b8
commit ee3cd42bd1

View File

@@ -247,3 +247,13 @@ const handleKeyup = async (generator: WorkflowGenerator, page: Page, key: string
logger.log('debug', `Key ${key} unpressed`);
};
/**
* A wrapper function for handling the url change event.
* @param url - the new url of the page
* @category HelperFunctions
*/
const onChangeUrl = async (url: string) => {
logger.log('debug', 'Handling change url event emitted from client');
await handleWrapper(handleChangeUrl, url);
}