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 { User } from "./User";
|
||||||
import {PositionInterface} from "_Model/PositionInterface";
|
import {PositionInterface} from "_Model/PositionInterface";
|
||||||
import {uuid} from "uuidv4";
|
|
||||||
import {Movable} from "_Model/Movable";
|
import {Movable} from "_Model/Movable";
|
||||||
import {PositionNotifier} from "_Model/PositionNotifier";
|
import {PositionNotifier} from "_Model/PositionNotifier";
|
||||||
|
|
||||||
|
@ -36,10 +36,8 @@ export class ConsoleGlobalMessageManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialise() {
|
initialise() {
|
||||||
try {
|
for (const elem of document.getElementsByClassName(CLASS_CONSOLE_MESSAGE)) {
|
||||||
HtmlUtils.removeElementByIdOrFail(CLASS_CONSOLE_MESSAGE);
|
elem.remove();
|
||||||
}catch (err){
|
|
||||||
console.error(err);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const typeConsole = document.createElement('input');
|
const typeConsole = document.createElement('input');
|
||||||
|
Loading…
Reference in New Issue
Block a user