Fixing console removal
This commit is contained in:
parent
8bc5832eac
commit
e1193ad95a
2 changed files with 3 additions and 6 deletions
|
@ -36,10 +36,8 @@ export class ConsoleGlobalMessageManager {
|
|||
}
|
||||
|
||||
initialise() {
|
||||
try {
|
||||
HtmlUtils.removeElementByIdOrFail(CLASS_CONSOLE_MESSAGE);
|
||||
}catch (err){
|
||||
console.error(err);
|
||||
for (const elem of document.getElementsByClassName(CLASS_CONSOLE_MESSAGE)) {
|
||||
elem.remove();
|
||||
}
|
||||
|
||||
const typeConsole = document.createElement('input');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue