mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-27 03:34:36 +00:00
fixed
This commit is contained in:
+5
-7
@@ -28,8 +28,6 @@ import "./components/baseComponents/Modal";
|
||||
import { GameStartingModal } from "./gameStartingModal";
|
||||
import "./styles.css";
|
||||
|
||||
import { ChatModal } from "./graphics/layers/ChatModal";
|
||||
|
||||
export interface JoinLobbyEvent {
|
||||
clientID: string;
|
||||
// Multiplayer games only have gameID, gameConfig is not known until game starts.
|
||||
@@ -107,11 +105,11 @@ class Client {
|
||||
}
|
||||
});
|
||||
|
||||
const ctModal = document.querySelector("chat-modal") as ChatModal;
|
||||
ctModal instanceof ChatModal;
|
||||
document.getElementById("chat-button").addEventListener("click", () => {
|
||||
ctModal.open();
|
||||
});
|
||||
// const ctModal = document.querySelector("chat-modal") as ChatModal;
|
||||
// ctModal instanceof ChatModal;
|
||||
// document.getElementById("chat-button").addEventListener("click", () => {
|
||||
// ctModal.open();
|
||||
// });
|
||||
|
||||
const hlpModal = document.querySelector("help-modal") as HelpModal;
|
||||
hlpModal instanceof HelpModal;
|
||||
|
||||
@@ -243,12 +243,12 @@
|
||||
block
|
||||
secondary
|
||||
></o-button>
|
||||
<o-button
|
||||
<!-- <o-button
|
||||
id="chat-button"
|
||||
title="Chat Test"
|
||||
block
|
||||
secondary
|
||||
></o-button>
|
||||
></o-button> -->
|
||||
</div>
|
||||
|
||||
<o-button
|
||||
|
||||
Reference in New Issue
Block a user