Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent 43ee812 commit 0df053f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ export const Frame = {
};

// hydra
session.on('eval:hydra', (msg) => Frame.hydra?.contentWindow.postMessage({ type: 'eval', msg }));
session.on('eval:hydra', (msg) => {
// msg.body += '\n\n\n' + getStdSource();
Frame.hydra?.contentWindow.postMessage({ type: 'eval', msg: msg.body + '\n\n\n' + getStdSource() });
});
// shader
session.on('eval:shader', (msg) => Frame.shader?.contentWindow.postMessage({ type: 'eval', msg }));
// strudel
session.on('eval:strudel', (msg) => {
msg.body = msg.body + '\n\n\n' + getStdSource();
// msg.body += '\n\n\n' + getStdSource();
return Frame.strudel?.contentWindow.postMessage({ type: 'eval', msg });
});
// kabelsalat
Expand Down

0 comments on commit 0df053f

Please sign in to comment.