mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
prettify, sorry for the big ass commit
This commit is contained in:
@@ -6,10 +6,10 @@ import { removeElement } from "./removeElement";
|
||||
* @param id The HTML identifier to search for and remove.
|
||||
*/
|
||||
export function removeElementById(id: string): void {
|
||||
try {
|
||||
const elem: HTMLElement = getElementById(id);
|
||||
removeElement(elem);
|
||||
} catch (e) {
|
||||
// Probably should log this as we're trying to remove elements that don't exist.
|
||||
}
|
||||
try {
|
||||
const elem: HTMLElement = getElementById(id);
|
||||
removeElement(elem);
|
||||
} catch (e) {
|
||||
// Probably should log this as we're trying to remove elements that don't exist.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user