Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Retrieve any newly created WebGL contexts as they're being created. Useful for instrumentation.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE.md
README.md
index.js
package.json

README.md

gl-catch-context experimental

Retrieve any newly created WebGL contexts as they're being created. Useful for instrumentation.

Usage

gl-catch-context

glCatchContext(callback)

Calls callback(context) when a new context is created. Make sure you require this file before the rest of your code, or you won't catch it!

License

MIT. See LICENSE.md for details.

Something went wrong with that request. Please try again.