We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a5ef02 commit a579af4Copy full SHA for a579af4
packages/visualizer/src/utils/replay-scripts.ts
@@ -512,7 +512,9 @@ export const generateAnimationScripts = async (
512
513
if (screenshot) {
514
const screenshotData =
515
- typeof screenshot === 'string' ? screenshot : await screenshot.getData();
+ typeof screenshot === 'string'
516
+ ? screenshot
517
+ : await screenshot.getData();
518
scripts.push({
519
type: 'img',
520
img: screenshotData,
@@ -550,9 +552,9 @@ export const generateAnimationScripts = async (
550
552
imageWidth: task.uiContext?.size?.width || imageWidth,
551
553
imageHeight: task.uiContext?.size?.height || imageHeight,
554
});
- return;
555
+ break;
556
}
- });
557
+ }
558
559
// console.log('scripts', scripts);
560
0 commit comments