From 622bb2ac33ca6a3e2d1be9e6daae1e821eccec00 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sun, 18 Jun 2017 08:07:06 +0700 Subject: [PATCH] Removing bad context declaration --- handler.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/handler.go b/handler.go index d394b34..eae0d92 100644 --- a/handler.go +++ b/handler.go @@ -395,10 +395,6 @@ func (h *TargetHandler) next() int64 { // GetRoot returns the current top level frame's root document node. 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 loop: