Skip to content

Commit

Permalink
Ensure proper order
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed Mar 13, 2020
1 parent 06ab109 commit 5c5ff59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/percy-agent-client/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class DOM {

$image.src = $canvas.toDataURL()
$image.setAttribute('data-percy-canvas-serialized', 'true')
$clonedCanvas.parentElement.appendChild($image)
$clonedCanvas.parentElement.insertBefore($image, $clonedCanvas)
$clonedCanvas.remove()
}
}
Expand Down

0 comments on commit 5c5ff59

Please sign in to comment.