Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only allow DartPad injection from window.parent #2993

Closed
wants to merge 17 commits into from

Conversation

NDevTK
Copy link
Contributor

@NDevTK NDevTK commented Jun 11, 2024

w = open('https://docs.flutter.dev/cookbook/effects/staggered-menu-animation#interactive-example');
setTimeout(() => {
 w[0].postMessage({sourceCode: ':)', type: 'sourceCode'}, '*')
}, 1000)

This PR forces code injection to be from the parent so I cant modify docs.flutter.dev :)
Improvement on #2943 but still don't know what I'm doing.

@NDevTK NDevTK marked this pull request as draft June 12, 2024 00:22
@NDevTK NDevTK marked this pull request as ready for review June 12, 2024 01:21
@NDevTK NDevTK closed this Jun 12, 2024
@NDevTK NDevTK mentioned this pull request Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant