@betterbugs/all 2.0.0-alpha.24 → 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/all.umd.cjs CHANGED
@@ -15933,7 +15933,7 @@ class Replayer {
15933
15933
  speed: 1,
15934
15934
  maxSpeed: 360,
15935
15935
  root: document.body,
15936
- loadTimeout: 5e3,
15936
+ loadTimeout: 0,
15937
15937
  skipInactive: false,
15938
15938
  inactivePeriodThreshold: 10 * 1e3,
15939
15939
  showWarning: true,
@@ -16497,7 +16497,7 @@ class Replayer {
16497
16497
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16498
16498
  if (!css.sheet) {
16499
16499
  unloadSheets.add(css);
16500
- const onLoadOrError = () => {
16500
+ css.addEventListener("load", () => {
16501
16501
  unloadSheets.delete(css);
16502
16502
  if (unloadSheets.size === 0 && timer !== -1) {
16503
16503
  if (beforeLoadState.matches("playing")) {
@@ -16509,9 +16509,7 @@ class Replayer {
16509
16509
  }
16510
16510
  unsubscribe();
16511
16511
  }
16512
- };
16513
- css.addEventListener("load", onLoadOrError);
16514
- css.addEventListener("error", onLoadOrError);
16512
+ });
16515
16513
  }
16516
16514
  });
16517
16515
  if (unloadSheets.size > 0) {