ClericPy / ichrome

Chrome controller for Humans, based on Chrome Devtools Protocol(CDP) and python3.7+.
https://pypi.org/project/ichrome/
MIT License
227 stars 29 forks source link

add default recv callback #109

Closed zenghh closed 1 year ago

zenghh commented 1 year ago

add default recv callback on sync ver

ClericPy commented 1 year ago

3.0.7 加上了一个 Tab._default_recv_callback = []

本着开闭原则, 这类非常见功能不适合修改构造函数, 放一个回调函数列表, 在拿到 tab 对象以后再自己动态增减默认回调函数即可.