fix watch title

This commit is contained in:
Alexander Wang 2023-03-17 20:32:45 -07:00
parent dd43bf4247
commit 396df43581
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -433,7 +433,7 @@ func (w *watcher) handleRoot(hw http.ResponseWriter, r *http.Request) {
<div id="d2-err" style="display: none"></div>
<div id="d2-svg-container"></div>
</body>
</html>`, w.outputPath, w.devMode)
</html>`, filepath.Base(w.outputPath), w.devMode)
}
func (w *watcher) handleWatch(hw http.ResponseWriter, r *http.Request) error {