Skip to content

Commit

Permalink
Handle nil request in Exchange#navigation_request? (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbeaudoin authored Feb 11, 2023
1 parent d141613 commit 0cab51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ferrum/network/exchange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def initialize(page, id)
# @return [Boolean]
#
def navigation_request?(frame_id)
request.type?(:document) && request&.frame_id == frame_id
request&.type?(:document) && request&.frame_id == frame_id
end

#
Expand Down

0 comments on commit 0cab51d

Please sign in to comment.