-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: some websites rebuild imcomplete (#1163)
* improve: mutation.ts, loop use Set replace Array * improve: add a try-catch to utils.ts to make it robust * Create yellow-mails-cheat.md --------- Co-authored-by: Yun Feng <[email protected]>
- Loading branch information
1 parent
e7f0c80
commit 4cb4d0e
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'rrweb': patch | ||
--- | ||
|
||
Fix: some websites rebuild imcomplete | ||
|
||
1. Some websites, addedSet in emit function is not empty, but the result converted from Array.from is empty. | ||
2. Some websites polyfill classList functions of HTML elements. Their implementation may throw errors and cause the snapshot to fail. I add try-catch statements to make the code robust. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters