This commit is contained in:
Danya H 2024-10-30 15:38:06 +00:00
parent cd27764a30
commit bc295a777b

View File

@ -13,10 +13,16 @@ export class Browser extends Helper {
super()
}
/**
* Setter. Enables console debug logs for events
*/
set debugLogs(debug: boolean) {
this.debugLogs_ = debug
}
/**
* Setter. Provides an ability to specify custom logger function to get special formatting. Using this enables ``debugLogs``
*/
set customLogger(
fn: (method: string, eventName: string, ...args: unknown[]) => unknown,
) {