Skip to content

Commit 0010533

Browse files
authored
Address vulnerability (#13479)
1 parent ff7842c commit 0010533

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/util/debug.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const Debug: {
1919
aabbCorners: Array<vec3>;
2020
extend: (...args: unknown[]) => void;
2121
run: (...args: unknown[]) => void;
22-
logToElement: (...args: unknown[]) => void;
2322
drawAabbs: (...args: unknown[]) => void;
2423
clearAabbs: (...args: unknown[]) => void;
2524
_drawBox: (...args: unknown[]) => void;
@@ -36,15 +35,6 @@ export const Debug: {
3635
fn();
3736
},
3837

39-
logToElement(message: string, overwrite: boolean = false, id: string = "log") {
40-
const el = document.getElementById(id);
41-
if (el) {
42-
if (overwrite) el.innerHTML = '';
43-
el.innerHTML += `<br>${message}`;
44-
}
45-
46-
},
47-
4838
debugCanvas: null,
4939
aabbCorners: [],
5040

0 commit comments

Comments
 (0)