@glimt/record 0.0.77 → 0.0.78
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/record.cjs +9 -4
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +9 -4
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +9 -4
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +8 -8
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.js
CHANGED
|
@@ -10375,8 +10375,10 @@ const _ObserveManager = class _ObserveManager2 {
|
|
|
10375
10375
|
}
|
|
10376
10376
|
onDocObserver(doc) {
|
|
10377
10377
|
if (!this.usable) return false;
|
|
10378
|
-
if (!this.docsObservers.has(doc))
|
|
10379
|
-
|
|
10378
|
+
if (!this.docsObservers.has(doc)) {
|
|
10379
|
+
this.docsObservers.add(doc);
|
|
10380
|
+
return true;
|
|
10381
|
+
}
|
|
10380
10382
|
debugLog(
|
|
10381
10383
|
"onDocObserver: doc already observed, emitting full snapshot for doc",
|
|
10382
10384
|
doc
|
|
@@ -10386,8 +10388,10 @@ const _ObserveManager = class _ObserveManager2 {
|
|
|
10386
10388
|
}
|
|
10387
10389
|
onShadowRootObserver(shadowRoot2) {
|
|
10388
10390
|
if (!this.usable) return false;
|
|
10389
|
-
if (!this.shadowRootsObservers.has(shadowRoot2))
|
|
10390
|
-
|
|
10391
|
+
if (!this.shadowRootsObservers.has(shadowRoot2)) {
|
|
10392
|
+
this.shadowRootsObservers.add(shadowRoot2);
|
|
10393
|
+
return true;
|
|
10394
|
+
}
|
|
10391
10395
|
debugLog(
|
|
10392
10396
|
"onShadowRootObserver: shadowRoot already observed, emitting full snapshot for shadowRoot",
|
|
10393
10397
|
shadowRoot2
|
|
@@ -13601,6 +13605,7 @@ function record(options = {}) {
|
|
|
13601
13605
|
iframeManager.addLoadListener((iframeEl) => {
|
|
13602
13606
|
try {
|
|
13603
13607
|
if (!observeManager.onDocObserver(iframeEl.contentDocument)) return;
|
|
13608
|
+
debugLog("Adding mutation observer for iframe", iframeEl);
|
|
13604
13609
|
handlers.push(observe(iframeEl.contentDocument));
|
|
13605
13610
|
} catch (error) {
|
|
13606
13611
|
if (isDebug()) {
|