Removing bad context declaration

This commit is contained in:
Kenneth Shaw 2017-06-18 08:07:06 +07:00
parent a7d69aad1f
commit 622bb2ac33

View File

@ -395,10 +395,6 @@ func (h *TargetHandler) next() int64 {
// GetRoot returns the current top level frame's root document node. // GetRoot returns the current top level frame's root document node.
func (h *TargetHandler) GetRoot(ctxt context.Context) (*cdp.Node, error) { func (h *TargetHandler) GetRoot(ctxt context.Context) (*cdp.Node, error) {
// TODO: fix this
ctxt, cancel := context.WithTimeout(ctxt, 10*time.Second)
defer cancel()
var root *cdp.Node var root *cdp.Node
loop: loop: