Skip to content

Commit

Permalink
Only volleyball events meant for makerspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunBarad committed Dec 20, 2024
1 parent 2d2d577 commit cd9673d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/insertVolleyball.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ process.stdin.on('data', (chunk) => {
// Listen for the end of the input stream
process.stdin.on('end', () => {
const lines = input.split('\n');
lines.splice(lines.length - 4, 0, '<script>window.addEventListener(\'message\', (event) => { if (!!window.parent) { window.parent.postMessage(event.data, \'*\'); } });</script>');
lines.splice(lines.length - 4, 0, '<script>window.addEventListener(\'message\', (event) => { if (!!window.parent && !!event.data.codeCommand) { window.parent.postMessage(event.data, \'*\'); } });</script>');
console.log(lines.join('\n'));
});

0 comments on commit cd9673d

Please sign in to comment.