mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
fix sleeve memory bug
This commit is contained in:
@@ -12,9 +12,7 @@ export function removeChildrenFromElement(el: string | null | Element): void {
|
||||
}
|
||||
|
||||
try {
|
||||
const elem: HTMLElement | Element = isString(el)
|
||||
? getElementById(el as string)
|
||||
: (el as Element);
|
||||
const elem: HTMLElement | Element = isString(el) ? getElementById(el as string) : (el as Element);
|
||||
|
||||
if (elem instanceof Element) {
|
||||
while (elem.firstChild !== null) {
|
||||
|
||||
Reference in New Issue
Block a user