MCPcopy Create free account
hub / github.com/microsoft/SandDance / onCreateError

Function onCreateError

docs/app/js/sanddance-app.js:60406–60408  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

60404function createBrowserContext(canvas, options) {
60405 var onError = options.onError;
60406 var onCreateError = function onCreateError(error) {
60407 return onError("WebGL context: ".concat(error.statusMessage || "error"));
60408 };
60409 canvas.addEventListener("webglcontextcreationerror", onCreateError, false);
60410 var _options$webgl = options.webgl1, webgl1 = _options$webgl === void 0 ? true : _options$webgl, _options$webgl2 = options.webgl2, webgl2 = _options$webgl2 === void 0 ? true : _options$webgl2;
60411 var gl = null;

Callers

nothing calls this directly

Calls 1

onErrorFunction · 0.70

Tested by

no test coverage detected