@posthog/rrweb 0.0.6 → 0.0.7
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 +10 -5
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +10 -5
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +10 -5
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +1 -1
- package/dist/rrweb.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/rrweb.umd.cjs
CHANGED
|
@@ -5146,11 +5146,16 @@ function getTagName(n2) {
|
|
|
5146
5146
|
function adaptCssForReplay(cssText, cache) {
|
|
5147
5147
|
const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
|
|
5148
5148
|
if (cachedStyle) return cachedStyle;
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5149
|
+
let result2 = cssText;
|
|
5150
|
+
try {
|
|
5151
|
+
const ast = postcss$1$1([
|
|
5152
|
+
mediaSelectorPlugin,
|
|
5153
|
+
pseudoClassPlugin
|
|
5154
|
+
]).process(cssText);
|
|
5155
|
+
result2 = ast.css;
|
|
5156
|
+
} catch (error) {
|
|
5157
|
+
console.warn("Failed to adapt css for replay", error);
|
|
5158
|
+
}
|
|
5154
5159
|
cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
|
|
5155
5160
|
return result2;
|
|
5156
5161
|
}
|