Correction form review and checks

This commit is contained in:
GRL 2021-06-22 10:27:54 +02:00
parent da5ae02a06
commit 4fedc30301
2 changed files with 6 additions and 1 deletions

View file

@ -5,7 +5,6 @@
import type {GameManager} from "../../Phaser/Game/GameManager";
import type {PlayGlobalMessageInterface} from "../../Connexion/ConnexionModels";
import {AdminMessageEventTypes} from "../../Connexion/AdminMessagesService";
import type {GameScene} from "../../Phaser/Game/GameScene";
import type {Quill} from "quill";
import {LoginSceneName} from "../../Phaser/Login/LoginScene";
@ -69,6 +68,9 @@
}
function SendTextMessage() {
if (gameScene == undefined) {
return;
}
const text = quill.getText(0, quill.getLength());
const GlobalMessage: PlayGlobalMessageInterface = {

View file

@ -25,6 +25,9 @@
async function SendAudioMessage() {
if (gameScene == undefined) {
return;
}
const inputAudio = HtmlUtils.getElementByIdOrFail<HTMLInputElement>("input-send-audio");
const selectedFile = inputAudio.files ? inputAudio.files[0] : null;
if (!selectedFile) {