Skip to content

Commit

Permalink
fix doc issue of hijack router (#926) (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
xujinzheng committed Aug 29, 2023
1 parent 0af5471 commit 50aa374
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hijack.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (r *HijackRouter) initEvents() *HijackRouter {
}

// Add a hijack handler to router, the doc of the pattern is the same as "proto.FetchRequestPattern.URLPattern".
// You can add new handler even after the "Run" is called.
func (r *HijackRouter) Add(pattern string, resourceType proto.NetworkResourceType, handler func(*Hijack)) error {
r.enable.Patterns = append(r.enable.Patterns, &proto.FetchRequestPattern{
URLPattern: pattern,
Expand Down

0 comments on commit 50aa374

Please sign in to comment.