Fixed bug with image upload
This commit is contained in:
parent
8759c55eee
commit
eb4f3d2a26
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user