Skip to content

Commit

Permalink
Remove isStylesheetLoaded function not used since rrweb-io#995
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed May 22, 2024
1 parent dba6733 commit 8d9de30
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,6 @@ function onceIframeLoaded(
iframeEl.addEventListener('load', listener);
}

function isStylesheetLoaded(link: HTMLLinkElement) {
if (!link.getAttribute('href')) return true; // nothing to load
return link.sheet !== null;
}

function onceStylesheetLoaded(
link: HTMLLinkElement,
listener: () => unknown,
Expand Down

0 comments on commit 8d9de30

Please sign in to comment.