Merge pull request #2914 from drauggres/bug/demo_addons_list

Fix demo. Clear addons list on terminal recreation
This commit is contained in:
Daniel Imms
2020-05-08 11:27:51 -07:00
committed by GitHub
+3 -1
View File
@@ -392,7 +392,9 @@ function initAddons(term: TerminalType): void {
wrapper.appendChild(label);
fragment.appendChild(wrapper);
});
document.getElementById('addons-container').appendChild(fragment);
const container = document.getElementById('addons-container');
container.innerHTML = '';
container.appendChild(fragment);
}
function addDomListener(element: HTMLElement, type: string, handler: (...args: any[]) => any): void {