diff --git a/index.html b/index.html
index e13e84e..0617013 100644
--- a/index.html
+++ b/index.html
@@ -49,8 +49,11 @@
},
""
);
- socket.send(paths);
- return false;
+ socket.send(JSON.stringify({ type: "drawings", paths: paths }));
+
+ for (const path of document.querySelectorAll("#svgElement path")) {
+ path.remove();
+ }
});