More strict fixes
This commit is contained in:
parent
111bfcfe8c
commit
7292bc3cab
2 changed files with 12 additions and 7 deletions
|
@ -248,7 +248,7 @@ export class MediaManager {
|
|||
}
|
||||
|
||||
private getElementByIdOrFail<T extends HTMLElement>(id: string): T {
|
||||
let elem = document.getElementById("activeCam");
|
||||
let elem = document.getElementById(id);
|
||||
if (elem === null) {
|
||||
throw new Error("Cannot find HTML element with id '"+id+"'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue