@posthog/rrweb 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.cjs +7 -2
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +7 -2
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +7 -2
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +25 -25
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb.cjs
CHANGED
|
@@ -13342,6 +13342,9 @@ class IframeManager {
|
|
|
13342
13342
|
addLoadListener(cb) {
|
|
13343
13343
|
this.loadListener = cb;
|
|
13344
13344
|
}
|
|
13345
|
+
removeLoadListener() {
|
|
13346
|
+
this.loadListener = void 0;
|
|
13347
|
+
}
|
|
13345
13348
|
attachIframe(iframeEl, childSn) {
|
|
13346
13349
|
var _a2;
|
|
13347
13350
|
this.mutationCb({
|
|
@@ -14744,13 +14747,14 @@ function record(options = {}) {
|
|
|
14744
14747
|
hooks
|
|
14745
14748
|
);
|
|
14746
14749
|
};
|
|
14747
|
-
|
|
14750
|
+
const loadListener = (iframeEl) => {
|
|
14748
14751
|
try {
|
|
14749
14752
|
handlers.push(observe(iframeEl.contentDocument));
|
|
14750
14753
|
} catch (error) {
|
|
14751
14754
|
console.warn(error);
|
|
14752
14755
|
}
|
|
14753
|
-
}
|
|
14756
|
+
};
|
|
14757
|
+
iframeManager.addLoadListener(loadListener);
|
|
14754
14758
|
const init = () => {
|
|
14755
14759
|
takeFullSnapshot$1();
|
|
14756
14760
|
handlers.push(observe(document));
|
|
@@ -14785,6 +14789,7 @@ function record(options = {}) {
|
|
|
14785
14789
|
return () => {
|
|
14786
14790
|
handlers.forEach((h) => h());
|
|
14787
14791
|
processedNodeManager.destroy();
|
|
14792
|
+
iframeManager.removeLoadListener();
|
|
14788
14793
|
iframeManager.destroy();
|
|
14789
14794
|
recording = false;
|
|
14790
14795
|
unregisterErrorHandler();
|