Skip to content

Commit

Permalink
cross client sipport
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent 6a8fb38 commit af01e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ export const Frame = {

// hydra
session.on('eval:hydra', (msg) => {
// msg.body += '\n\n\n' + getStdSource();
msg.body += '\n\n\n' + getStdSource();
Frame.hydra?.contentWindow.postMessage({ type: 'eval', msg });
});
// shader
session.on('eval:shader', (msg) => Frame.shader?.contentWindow.postMessage({ type: 'eval', msg }));
// strudel
session.on('eval:strudel', (msg) => {
// 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 af01e49

Please sign in to comment.