fmt
This commit is contained in:
parent
65f97fc7be
commit
2ca39f8ed3
1 changed files with 1 additions and 3 deletions
|
|
@ -8,9 +8,7 @@ function init(reconnectDelay) {
|
||||||
const d2SVG = window.document.querySelector("#d2-svg-container");
|
const d2SVG = window.document.querySelector("#d2-svg-container");
|
||||||
|
|
||||||
const devMode = document.body.dataset.d2DevMode === "true";
|
const devMode = document.body.dataset.d2DevMode === "true";
|
||||||
const ws = new WebSocket(
|
const ws = new WebSocket(`ws://${window.location.host}/watch`);
|
||||||
`ws://${window.location.host}/watch`
|
|
||||||
);
|
|
||||||
let isInit = true;
|
let isInit = true;
|
||||||
let ratio;
|
let ratio;
|
||||||
ws.onopen = () => {
|
ws.onopen = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue