rrweb
rrweb copied to clipboard
How we can block multiple class
@Yuyz0112 can we use multiple class to block
Hey @arnavchaurasia, rrweb only handles a single blockClass right now. See https://github.com/rrweb-io/rrweb/blob/995d80a26ff23e0ed9bebd7292e2d0a5491f3f4f/src/utils.ts#L227
Supporting multiple class names would be straightforward, change the string into a string[].
The argument in favor of multiple blocking classes is... you can add the rr-block to elements that match your classes before starting the recording process, but you can't handle dynamically created elements that happen later.
@ucjonathan @JohnPhamous how can we publish the rrweb code with my changes of string[] i have published using npm publish after building rrweb code but it;s not working
On Sun, Jun 13, 2021 at 5:47 PM ucjonathan @.***> wrote:
The argument in favor of multiple blocking classes is... you can add the rr-block to elements that match your classes before starting the recording process, but you can't handle dynamically created elements that happen later.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rrweb-io/rrweb/issues/581#issuecomment-860201489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCWDMPQRUMA4MSLDSARVLLTSSOW3ANCNFSM46QNEZNA .
@arnavchaurasia You can't publish rrweb by yourself. If you would like your changes applied by rrweb, just open a pull request.