Skip to content

Commit 48ad44f

Browse files
committed
fix
1 parent 4aab0dd commit 48ad44f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export default function PreviewBox({ code, appState, sendMessageChange, history,
4848

4949
const onIframeLoad = async () => {
5050
const img = await takeScreenshot();
51-
updateHistoryScreenshot(img);
51+
setTimeout(() => {
52+
updateHistoryScreenshot(img);
53+
}, 2000)
5254
}
5355

5456
useEffect(() => {

0 commit comments

Comments
 (0)