@posthog/rrweb-record 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-record.cjs +7 -2
- package/dist/rrweb-record.cjs.map +1 -1
- package/dist/rrweb-record.js +7 -2
- package/dist/rrweb-record.js.map +1 -1
- package/dist/rrweb-record.umd.cjs +7 -2
- package/dist/rrweb-record.umd.cjs.map +2 -2
- package/dist/rrweb-record.umd.min.cjs +17 -17
- package/dist/rrweb-record.umd.min.cjs.map +3 -3
- package/package.json +1 -1
|
@@ -11508,6 +11508,9 @@ class IframeManager {
|
|
|
11508
11508
|
addLoadListener(cb) {
|
|
11509
11509
|
this.loadListener = cb;
|
|
11510
11510
|
}
|
|
11511
|
+
removeLoadListener() {
|
|
11512
|
+
this.loadListener = void 0;
|
|
11513
|
+
}
|
|
11511
11514
|
attachIframe(iframeEl, childSn) {
|
|
11512
11515
|
var _a2;
|
|
11513
11516
|
this.mutationCb({
|
|
@@ -12875,13 +12878,14 @@ function record(options = {}) {
|
|
|
12875
12878
|
hooks
|
|
12876
12879
|
);
|
|
12877
12880
|
};
|
|
12878
|
-
|
|
12881
|
+
const loadListener = (iframeEl) => {
|
|
12879
12882
|
try {
|
|
12880
12883
|
handlers.push(observe(iframeEl.contentDocument));
|
|
12881
12884
|
} catch (error) {
|
|
12882
12885
|
console.warn(error);
|
|
12883
12886
|
}
|
|
12884
|
-
}
|
|
12887
|
+
};
|
|
12888
|
+
iframeManager.addLoadListener(loadListener);
|
|
12885
12889
|
const init = () => {
|
|
12886
12890
|
takeFullSnapshot$1();
|
|
12887
12891
|
handlers.push(observe(document));
|
|
@@ -12916,6 +12920,7 @@ function record(options = {}) {
|
|
|
12916
12920
|
return () => {
|
|
12917
12921
|
handlers.forEach((h) => h());
|
|
12918
12922
|
processedNodeManager.destroy();
|
|
12923
|
+
iframeManager.removeLoadListener();
|
|
12919
12924
|
iframeManager.destroy();
|
|
12920
12925
|
recording = false;
|
|
12921
12926
|
unregisterErrorHandler();
|