removed unused function parameter

This commit is contained in:
RandomErrorMessage
2019-09-27 02:30:44 -07:00
parent ff09bbeff4
commit 6b28dfec25
2 changed files with 3 additions and 3 deletions

View File

@@ -13,9 +13,9 @@ type HTML struct {
}
// NewHTML returns new HTML handler.
func NewHTML(bind string, width, height float64, nogl bool) *HTML {
func NewHTML(width, height float64, nogl bool) *HTML {
h := &HTML{}
tpl := htmlWebGL
if nogl {
tpl = html

View File

@@ -49,7 +49,7 @@ func (s *Server) ListenAndServe() error {
basic = auth.NewBasicAuthenticator(realm, auth.HtpasswdFileProvider(s.Htpasswd))
}
http.Handle("/html", newAuthHandler(handlers.NewHTML(s.Bind, s.FrameWidth, s.FrameHeight, s.NoWebGL), basic))
http.Handle("/html", newAuthHandler(handlers.NewHTML(s.FrameWidth, s.FrameHeight, s.NoWebGL), basic))
http.Handle("/jpeg", newAuthHandler(handlers.NewJPEG(s.Reader), basic))
http.Handle("/mjpeg", newAuthHandler(handlers.NewMJPEG(s.Reader, s.Delay), basic))