mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
prettify, sorry for the big ass commit
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
* @throws {Error} When the 'elementId' cannot be found.
|
||||
*/
|
||||
export function getElementById(elementId: string): HTMLElement {
|
||||
const el: HTMLElement | null = document.getElementById(elementId);
|
||||
if (el === null) {
|
||||
throw new Error(`Unable to find element with id '${elementId}'`);
|
||||
}
|
||||
const el: HTMLElement | null = document.getElementById(elementId);
|
||||
if (el === null) {
|
||||
throw new Error(`Unable to find element with id '${elementId}'`);
|
||||
}
|
||||
|
||||
return el;
|
||||
return el;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user