fix: add onerror handler for lazy-loaded WebGL addon script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkonandClaude Opus 4.6 committed 2026-03-14 19:23:15 +01:00
1 parent 88c415fc37
commit c4bae75c59
1 file changed
+1
+1
View File
@@ -666,6 +666,7 @@ class CodemanApp {
const wglScript = document.createElement('script');
wglScript.src = 'vendor/xterm-addon-webgl.min.js';
wglScript.onload = () => this._initWebGL();
wglScript.onerror = () => console.warn('[CRASH-DIAG] Failed to load WebGL addon — using canvas renderer');
document.head.appendChild(wglScript);
}
}