Handle errors when observing iframes (#1058)
This commit is contained in:
@@ -565,7 +565,12 @@ function record<T = eventWithTime>(
|
|||||||
};
|
};
|
||||||
|
|
||||||
iframeManager.addLoadListener((iframeEl) => {
|
iframeManager.addLoadListener((iframeEl) => {
|
||||||
handlers.push(observe(iframeEl.contentDocument!));
|
try {
|
||||||
|
handlers.push(observe(iframeEl.contentDocument!));
|
||||||
|
} catch (error) {
|
||||||
|
// TODO: handle internal error
|
||||||
|
console.warn(error);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user