Skip to content

Commit be74277

Browse files
committed
Add comment
1 parent d6b68c5 commit be74277

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ Worker.prototype.toContainer = function toContainer() {
122122
this.prop.container.appendChild(source);
123123
this.prop.overlay.appendChild(this.prop.container);
124124
document.body.appendChild(this.prop.overlay);
125+
126+
// Delay to better ensure content is fully cloned and rendering before capturing.
125127
return new Promise(resolve => setTimeout(resolve, 10));
126128
});
127129
};

0 commit comments

Comments
 (0)