mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Revert "Pro 1364 ux and codebase improvements"
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
import { getIFrameSimulationData } from '~/lib/replay/Recording';
|
||||
import { simulationAddData } from '~/lib/replay/ChatManager';
|
||||
import { getCurrentIFrame } from '~/components/workbench/Preview';
|
||||
|
||||
async function flushSimulationData() {
|
||||
//console.log("FlushSimulationData");
|
||||
|
||||
const iframe = getCurrentIFrame();
|
||||
|
||||
if (!iframe) {
|
||||
return;
|
||||
}
|
||||
|
||||
const simulationData = await getIFrameSimulationData(iframe);
|
||||
|
||||
if (!simulationData.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
//console.log("HaveSimulationData", simulationData.length);
|
||||
|
||||
// Add the simulation data to the chat.
|
||||
simulationAddData(simulationData);
|
||||
}
|
||||
|
||||
export default flushSimulationData;
|
||||
Reference in New Issue
Block a user