diff --git a/index.html b/index.html index db52665..bd389c2 100644 --- a/index.html +++ b/index.html @@ -24,10 +24,11 @@ const dataURL = canvas.toDataURL('image/png'); const base64Image = dataURL.split(',')[1]; //document.body.appendChild(canvas); - console.log('sending data',data) - conn.send({ + let data = { dataURL: dataURL - }) + } + console.log('sending data',data) + conn.send(data) });