]> git.proxmox.com Git - pve-xtermjs.git/commit
fix #5063: load WebGL addon in try block
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Dec 2023 10:19:56 +0000 (11:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Dec 2023 12:35:31 +0000 (13:35 +0100)
commitde938aa06c9ee46036e9ac11fab19650ec9f0c2b
tree57939fee920e941ddd74309ce3b572d6947bd513
parente2e62fc67368ad25a35c6d009f9d85ac5ef97233
fix #5063: load WebGL addon in try block

since under certain circumstances (e.g. using safari < 16) the addon
constructor already throws an exception, not only the loading later.

To allow falling back to the canvas renderer, move it into the try
block after WebGL detection.

This should fix the xterm.js console on Apple's iOS.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
xterm.js/src/main.js