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

window.postMessage doesn't seem to work the first time it's injected #5

Open
spite opened this issue Apr 7, 2015 · 0 comments
Open

Comments

@spite
Copy link
Owner

spite commented Apr 7, 2015

At the end of the injected function, there's a call to

window.postMessage( { source: 'WebGLShaderEditor', method: 'init' }, '*');

which doesn't seem to work. That message would signal that the WebGLRenderingContext has been hooked, and that everything is ready to start getting events, so the UI should be visible, or at least a message that says "Waiting for programs to be created..."

That doesn't work, so now I'm using the first "addProgram" message to signal that there's activity.

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

No branches or pull requests

1 participant