Correction form review and checks

This commit is contained in:
GRL 2021-06-22 10:43:20 +02:00
parent 0cc7ed1647
commit 55d99b24f4
3 changed files with 11 additions and 4 deletions

View file

@ -80,7 +80,7 @@
};
quill.deleteText(0, quill.getLength());
gameScene.connection.emitGlobalMessage(GlobalMessage);
gameScene.connection?.emitGlobalMessage(GlobalMessage);
disableConsole();
}
</script>

View file

@ -37,7 +37,7 @@
const fd = new FormData();
fd.append('file', selectedFile);
const res = await gameScene.connection.uploadAudio(fd);
const res = await gameScene.connection?.uploadAudio(fd);
const GlobalMessage: PlayGlobalMessageInterface = {
id: (res as { id: string }).id,
@ -45,7 +45,7 @@
type: AUDIO_TYPE
}
inputAudio.value = '';
gameScene.connection.emitGlobalMessage(GlobalMessage);
gameScene.connection?.emitGlobalMessage(GlobalMessage);
disableConsole();
}