From 2ca39f8ed322c1190641496bd7318a504212616b Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Sat, 29 Jul 2023 09:17:24 -0700 Subject: [PATCH] fmt --- d2cli/static/watch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/d2cli/static/watch.js b/d2cli/static/watch.js index 9da3e630a..4d91259eb 100644 --- a/d2cli/static/watch.js +++ b/d2cli/static/watch.js @@ -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 = () => {