@betterbugs/rrweb 2.0.0-alpha.23 → 2.0.0-alpha.25

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 CHANGED
@@ -16499,7 +16499,7 @@ class Replayer {
16499
16499
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16500
16500
  if (!css.sheet) {
16501
16501
  unloadSheets.add(css);
16502
- const onLoadOrError = () => {
16502
+ css.addEventListener("load", () => {
16503
16503
  unloadSheets.delete(css);
16504
16504
  if (unloadSheets.size === 0 && timer !== -1) {
16505
16505
  if (beforeLoadState.matches("playing")) {
@@ -16511,9 +16511,7 @@ class Replayer {
16511
16511
  }
16512
16512
  unsubscribe();
16513
16513
  }
16514
- };
16515
- css.addEventListener("load", onLoadOrError);
16516
- css.addEventListener("error", onLoadOrError);
16514
+ });
16517
16515
  }
16518
16516
  });
16519
16517
  if (unloadSheets.size > 0) {