Skip to content

Commit

Permalink
fix: Array.from override (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Jul 29, 2024
1 parent d72b287 commit 93360d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion patches/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,18 @@ index da2c103fe6b1408a5996f0eb3bf047571e434cc2..f5b060c7e0728a3e2c6cf62b01d97282
}, [bitmap]);
}));
diff --git a/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js b/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js
index 0fc7d4bcafc9be822347f9437658478fd77d9972..5dcd1dcbd5380567110378269f3bc8d7b7ca6440 100644
index 0fc7d4bcafc9be822347f9437658478fd77d9972..bb4114b638b7d1173ef50b639a58de7d707c474f 100644
--- a/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js
+++ b/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js
@@ -48,7 +48,7 @@ function stringifyStylesheet(s) {
try {
const rules = s.rules || s.cssRules;
return rules
- ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules, stringifyRule).join(''))
+ ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules).map(stringifyRule).join(''))
: null;
}
catch (error) {
@@ -641,9 +641,18 @@ function serializeElementNode(n, options) {
}
}
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93360d6

Please sign in to comment.