Correction form review and checks
This commit is contained in:
parent
da5ae02a06
commit
4fedc30301
@ -5,7 +5,6 @@
|
|||||||
import type {GameManager} from "../../Phaser/Game/GameManager";
|
import type {GameManager} from "../../Phaser/Game/GameManager";
|
||||||
import type {PlayGlobalMessageInterface} from "../../Connexion/ConnexionModels";
|
import type {PlayGlobalMessageInterface} from "../../Connexion/ConnexionModels";
|
||||||
import {AdminMessageEventTypes} from "../../Connexion/AdminMessagesService";
|
import {AdminMessageEventTypes} from "../../Connexion/AdminMessagesService";
|
||||||
import type {GameScene} from "../../Phaser/Game/GameScene";
|
|
||||||
import type {Quill} from "quill";
|
import type {Quill} from "quill";
|
||||||
import {LoginSceneName} from "../../Phaser/Login/LoginScene";
|
import {LoginSceneName} from "../../Phaser/Login/LoginScene";
|
||||||
|
|
||||||
@ -69,6 +68,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SendTextMessage() {
|
function SendTextMessage() {
|
||||||
|
if (gameScene == undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const text = quill.getText(0, quill.getLength());
|
const text = quill.getText(0, quill.getLength());
|
||||||
|
|
||||||
const GlobalMessage: PlayGlobalMessageInterface = {
|
const GlobalMessage: PlayGlobalMessageInterface = {
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
|
|
||||||
|
|
||||||
async function SendAudioMessage() {
|
async function SendAudioMessage() {
|
||||||
|
if (gameScene == undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const inputAudio = HtmlUtils.getElementByIdOrFail<HTMLInputElement>("input-send-audio");
|
const inputAudio = HtmlUtils.getElementByIdOrFail<HTMLInputElement>("input-send-audio");
|
||||||
const selectedFile = inputAudio.files ? inputAudio.files[0] : null;
|
const selectedFile = inputAudio.files ? inputAudio.files[0] : null;
|
||||||
if (!selectedFile) {
|
if (!selectedFile) {
|
||||||
|
Loading…
Reference in New Issue
Block a user