mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-16 04:18:39 +00:00
WebGL is now default
This commit is contained in:
@@ -13,7 +13,7 @@ type HTML struct {
|
||||
}
|
||||
|
||||
// NewHTML returns new HTML handler.
|
||||
func NewHTML(bind string, width, height float64, gl bool) *HTML {
|
||||
func NewHTML(bind string, width, height float64, nogl bool) *HTML {
|
||||
h := &HTML{}
|
||||
|
||||
b := strings.Split(bind, ":")
|
||||
@@ -21,9 +21,9 @@ func NewHTML(bind string, width, height float64, gl bool) *HTML {
|
||||
bind = "127.0.0.1" + bind
|
||||
}
|
||||
|
||||
tpl := html
|
||||
if gl {
|
||||
tpl = htmlWebGL
|
||||
tpl := htmlWebGL
|
||||
if nogl {
|
||||
tpl = html
|
||||
}
|
||||
|
||||
tpl = strings.Replace(tpl, "{BIND}", bind, -1)
|
||||
|
||||
Reference in New Issue
Block a user