Skip to content

Commit

Permalink
Update packages/rrweb/src/record/observer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored Nov 7, 2023
1 parent 8b6f799 commit 8cb6266
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ function initCustomElementObserver({
customElementCb,
}: observerParam): listenerHandler {
const win = doc.defaultView as IWindow;
// eslint-disable-next-line @typescript-eslint/no-empty-function
if (!win || !win.customElements) return () => {};
const restoreHandler = patch(
win.customElements,
Expand Down

0 comments on commit 8cb6266

Please sign in to comment.