Update static/asic-design-code-generator.html
Browse files
static/asic-design-code-generator.html
CHANGED
|
@@ -229,7 +229,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 229 |
const protocol = window.location.protocol === "https:" ? "wss://" : "ws://";
|
| 230 |
websocket = new WebSocket(`${protocol}${window.location.host}${endpoint}`);
|
| 231 |
websocket.onmessage = (event) => {
|
| 232 |
-
generatedCodeOutput.
|
| 233 |
};
|
| 234 |
websocket.onclose = () => {
|
| 235 |
console.log("WebSocket connection closed");
|
|
|
|
| 229 |
const protocol = window.location.protocol === "https:" ? "wss://" : "ws://";
|
| 230 |
websocket = new WebSocket(`${protocol}${window.location.host}${endpoint}`);
|
| 231 |
websocket.onmessage = (event) => {
|
| 232 |
+
generatedCodeOutput.innerHTML = marked.parse( event.data);
|
| 233 |
};
|
| 234 |
websocket.onclose = () => {
|
| 235 |
console.log("WebSocket connection closed");
|