Skip to content

Commit

Permalink
update: observer child-list @ tracker#observer
Browse files Browse the repository at this point in the history
  • Loading branch information
paras-verma committed Dec 28, 2023
1 parent bfd9dad commit b95b220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/trackers/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Trackers {

this.registerTrackers(this.events, this.track);
this.observer = new MutationObserver(() => this.registerTrackers(this.events, this.track));
this.observer.observe(document, { subtree: true, attributes: true });
this.observer.observe(document, { subtree: true, attributes: true, childList: true });

(window as any).fwTrackersRegistered = true;
} catch (error) {
Expand Down

0 comments on commit b95b220

Please sign in to comment.