mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
This commit is contained in:
@@ -20,6 +20,12 @@ export function clearNode(node: HTMLElement): void {
|
||||
}
|
||||
}
|
||||
|
||||
export function removeNode(node: HTMLElement): void {
|
||||
if (node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
}
|
||||
|
||||
export function isInDOM(node: Node | null): boolean {
|
||||
while (node) {
|
||||
if (node === document.body) {
|
||||
|
||||
Reference in New Issue
Block a user