diff --git a/templates/index.html b/templates/index.html
index 4396b0b..3e09178 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -18,22 +18,12 @@
).innerHTML += `${text}
`;
};
- console.log(location.protocol);
- console.log(
+ const socket = new WebSocket(
(location.protocol == "https:" ? "wss://" : "ws://") +
location.host +
location.pathname.replace(new RegExp("\/" + "$"), "") +
"/echo/"
);
-
- const socket = new WebSocket(
- location.protocol == "https:"
- ? "wss://"
- : "ws://" +
- location.host +
- location.pathname.replace(new RegExp("\/" + "$"), "") +
- "/echo/"
- );
socket.addEventListener("message", (ev) => {
log("<<< " + ev.data, "blue");
});