@betterbugs/all 2.0.0-alpha.19 → 2.0.0-alpha.20

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.cjs CHANGED
@@ -15485,7 +15485,7 @@ class Replayer {
15485
15485
  speed: 1,
15486
15486
  maxSpeed: 360,
15487
15487
  root: document.body,
15488
- loadTimeout: 0,
15488
+ loadTimeout: 5e3,
15489
15489
  skipInactive: false,
15490
15490
  inactivePeriodThreshold: 10 * 1e3,
15491
15491
  showWarning: true,
@@ -16049,7 +16049,7 @@ class Replayer {
16049
16049
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16050
16050
  if (!css.sheet) {
16051
16051
  unloadSheets.add(css);
16052
- css.addEventListener("load", () => {
16052
+ const onLoadOrError = () => {
16053
16053
  unloadSheets.delete(css);
16054
16054
  if (unloadSheets.size === 0 && timer !== -1) {
16055
16055
  if (beforeLoadState.matches("playing")) {
@@ -16061,7 +16061,9 @@ class Replayer {
16061
16061
  }
16062
16062
  unsubscribe();
16063
16063
  }
16064
- });
16064
+ };
16065
+ css.addEventListener("load", onLoadOrError);
16066
+ css.addEventListener("error", onLoadOrError);
16065
16067
  }
16066
16068
  });
16067
16069
  if (unloadSheets.size > 0) {