Fixing console removal

This commit is contained in:
David Négrier 2020-10-01 17:16:36 +02:00
parent 8bc5832eac
commit e1193ad95a
2 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,6 @@
import { World, ConnectCallback, DisconnectCallback } from "./World";
import { ConnectCallback, DisconnectCallback } from "./World";
import { User } from "./User";
import {PositionInterface} from "_Model/PositionInterface";
import {uuid} from "uuidv4";
import {Movable} from "_Model/Movable";
import {PositionNotifier} from "_Model/PositionNotifier";

View File

@ -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');