This commit is contained in:
Alexander Wang 2023-07-29 09:17:24 -07:00
parent 65f97fc7be
commit 2ca39f8ed3
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -8,9 +8,7 @@ function init(reconnectDelay) {
const d2SVG = window.document.querySelector("#d2-svg-container");
const devMode = document.body.dataset.d2DevMode === "true";
const ws = new WebSocket(
`ws://${window.location.host}/watch`
);
const ws = new WebSocket(`ws://${window.location.host}/watch`);
let isInit = true;
let ratio;
ws.onopen = () => {