@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.umd.cjs
CHANGED
|
@@ -13363,6 +13363,9 @@ class IframeManager {
|
|
|
13363
13363
|
addLoadListener(cb) {
|
|
13364
13364
|
this.loadListener = cb;
|
|
13365
13365
|
}
|
|
13366
|
+
removeLoadListener() {
|
|
13367
|
+
this.loadListener = void 0;
|
|
13368
|
+
}
|
|
13366
13369
|
attachIframe(iframeEl, childSn) {
|
|
13367
13370
|
var _a2;
|
|
13368
13371
|
this.mutationCb({
|
|
@@ -14750,13 +14753,14 @@ function record(options = {}) {
|
|
|
14750
14753
|
hooks
|
|
14751
14754
|
);
|
|
14752
14755
|
};
|
|
14753
|
-
|
|
14756
|
+
const loadListener = (iframeEl) => {
|
|
14754
14757
|
try {
|
|
14755
14758
|
handlers.push(observe(iframeEl.contentDocument));
|
|
14756
14759
|
} catch (error) {
|
|
14757
14760
|
console.warn(error);
|
|
14758
14761
|
}
|
|
14759
|
-
}
|
|
14762
|
+
};
|
|
14763
|
+
iframeManager.addLoadListener(loadListener);
|
|
14760
14764
|
const init = () => {
|
|
14761
14765
|
takeFullSnapshot$1();
|
|
14762
14766
|
handlers.push(observe(document));
|
|
@@ -14791,6 +14795,7 @@ function record(options = {}) {
|
|
|
14791
14795
|
return () => {
|
|
14792
14796
|
handlers.forEach((h) => h());
|
|
14793
14797
|
processedNodeManager.destroy();
|
|
14798
|
+
iframeManager.removeLoadListener();
|
|
14794
14799
|
iframeManager.destroy();
|
|
14795
14800
|
recording = false;
|
|
14796
14801
|
unregisterErrorHandler();
|