Skip to content

Commit d6b68c5

Browse files
committed
fix: Add delay to ensure content is rendered before capturing
1 parent b7adb2f commit d6b68c5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ 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+
return new Promise(resolve => setTimeout(resolve, 10));
125126
});
126127
};
127128

0 commit comments

Comments
 (0)