From 03c75360b152ed031b220129aae1610c3e6e50c4 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 31 Jul 2022 15:28:27 -0700 Subject: [PATCH] Fix unchecking webgl in demo --- demo/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/client.ts b/demo/client.ts index 0f35b251..c0d3af6d 100644 --- a/demo/client.ts +++ b/demo/client.ts @@ -511,7 +511,7 @@ function initAddons(term: TerminalType): void { } } else { if (name === 'webgl') { - document.body.removeChild((addon.instance as WebglAddon).textureAtlas); + (addon.instance as WebglAddon).textureAtlas.remove(); } else if (name === 'unicode11') { term.unicode.activeVersion = '6'; }