(display *display.Renderer)
| 524 | } |
| 525 | |
| 526 | func openWebAppInBrowser(display *display.Renderer) { |
| 527 | display.Infof("Perform your changes within the editor: %q", webServerURL) |
| 528 | |
| 529 | if err := browser.OpenURL(webServerURL); err != nil { |
| 530 | display.Warnf("Failed to open the browser. Visit the URL manually.") |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | func (h *webSocketHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 535 | upgrader := websocket.Upgrader{ |
no test coverage detected