Fixed bug with image upload

This commit is contained in:
Mitchell McCaffrey 2020-03-19 13:05:50 +11:00
parent 8759c55eee
commit eb4f3d2a26

View File

@ -35,7 +35,7 @@ function Game() {
imageDataRef.current = event.target.files[0];
setImageSource(URL.createObjectURL(imageDataRef.current));
for (let connection of Object.values(connections)) {
connection.data.send({ id: "image", data: imageDataRef.current });
connection.send({ id: "image", data: imageDataRef.current });
}
}