MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / isWebGLContextLostError

Function isWebGLContextLostError

src/utils/errorUtils.ts:92–94  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

90 * Checks if an error is likely a WebGL context loss event.
91 */
92export function isWebGLContextLostError(error: Error): boolean {
93 return classifyError(error) === 'webgl_context_lost';
94}
95
96/**
97 * Checks if an error is recoverable without a full page reload.

Callers

nothing calls this directly

Calls 1

classifyErrorFunction · 0.85

Tested by

no test coverage detected