Skip to content

Commit

Permalink
v14.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Dec 24, 2024
1 parent e6e7635 commit 9fc4254
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/esm/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "14.1.1",
"version": "14.1.2",
"main": "build/cjs/index.js",
"module": "build/esm/index.mjs",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions published/14.1.2/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion src/ScreenCapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,16 @@ const deepClone = async (host) => {
const walkTree = async (nextn, nextp, innerShadowRoot) => {
while (nextn) {
await cloneNode(nextn, nextp, innerShadowRoot);
nextn = nextn.nextSibling;

// Fix missing element nodes.
if (
nextn.nextElementSibling &&
nextn.nextElementSibling.nextSibling === nextn.nextSibling
) {
nextn = nextn.nextElementSibling;
} else {
nextn = nextn.nextSibling;
}
}
};

Expand Down

0 comments on commit 9fc4254

Please sign in to comment.