@betterbugs/rrweb 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/rrweb.cjs +5 -3
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +5 -3
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +5 -3
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +1 -1
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +5 -5
package/dist/rrweb.js
CHANGED
|
@@ -15511,7 +15511,7 @@ class Replayer {
|
|
|
15511
15511
|
speed: 1,
|
|
15512
15512
|
maxSpeed: 360,
|
|
15513
15513
|
root: document.body,
|
|
15514
|
-
loadTimeout:
|
|
15514
|
+
loadTimeout: 5e3,
|
|
15515
15515
|
skipInactive: false,
|
|
15516
15516
|
inactivePeriodThreshold: 10 * 1e3,
|
|
15517
15517
|
showWarning: true,
|
|
@@ -16075,7 +16075,7 @@ class Replayer {
|
|
|
16075
16075
|
head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
|
|
16076
16076
|
if (!css.sheet) {
|
|
16077
16077
|
unloadSheets.add(css);
|
|
16078
|
-
|
|
16078
|
+
const onLoadOrError = () => {
|
|
16079
16079
|
unloadSheets.delete(css);
|
|
16080
16080
|
if (unloadSheets.size === 0 && timer !== -1) {
|
|
16081
16081
|
if (beforeLoadState.matches("playing")) {
|
|
@@ -16087,7 +16087,9 @@ class Replayer {
|
|
|
16087
16087
|
}
|
|
16088
16088
|
unsubscribe();
|
|
16089
16089
|
}
|
|
16090
|
-
}
|
|
16090
|
+
};
|
|
16091
|
+
css.addEventListener("load", onLoadOrError);
|
|
16092
|
+
css.addEventListener("error", onLoadOrError);
|
|
16091
16093
|
}
|
|
16092
16094
|
});
|
|
16093
16095
|
if (unloadSheets.size > 0) {
|