Fixing console removal
This commit is contained in:
parent
8bc5832eac
commit
e1193ad95a
@ -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";
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user