Skip to content

Commit 0cab51d

Browse files
Handle nil request in Exchange#navigation_request? (#339)
1 parent d141613 commit 0cab51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ferrum/network/exchange.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(page, id)
5151
# @return [Boolean]
5252
#
5353
def navigation_request?(frame_id)
54-
request.type?(:document) && request&.frame_id == frame_id
54+
request&.type?(:document) && request&.frame_id == frame_id
5555
end
5656

5757
#

0 commit comments

Comments
 (0)