Correction form review and checks
This commit is contained in:
parent
0cc7ed1647
commit
55d99b24f4
3 changed files with 11 additions and 4 deletions
|
@ -80,7 +80,7 @@
|
|||
};
|
||||
|
||||
quill.deleteText(0, quill.getLength());
|
||||
gameScene.connection.emitGlobalMessage(GlobalMessage);
|
||||
gameScene.connection?.emitGlobalMessage(GlobalMessage);
|
||||
disableConsole();
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue