mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 00:19:42 +02:00
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:
@@ -666,6 +666,7 @@ class CodemanApp {
|
|||||||
const wglScript = document.createElement('script');
|
const wglScript = document.createElement('script');
|
||||||
wglScript.src = 'vendor/xterm-addon-webgl.min.js';
|
wglScript.src = 'vendor/xterm-addon-webgl.min.js';
|
||||||
wglScript.onload = () => this._initWebGL();
|
wglScript.onload = () => this._initWebGL();
|
||||||
|
wglScript.onerror = () => console.warn('[CRASH-DIAG] Failed to load WebGL addon — using canvas renderer');
|
||||||
document.head.appendChild(wglScript);
|
document.head.appendChild(wglScript);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user