We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f68f8 commit 3606d54Copy full SHA for 3606d54
lib/ferrum/contexts.rb
@@ -94,7 +94,7 @@ def subscribe # rubocop:disable Metrics/PerceivedComplexity
94
add_context(context_id)
95
96
if info["type"] == "iframe" &&
97
- (target = @contexts[context_id].find_target { |t| t.connected? && t.page.frame_by(id: info["targetId"]) })
+ (target = @contexts[context_id]&.find_target { |t| t.connected? && t.page.frame_by(id: info["targetId"]) })
98
@contexts[context_id]&.add_target(session_id: target.page.client.session_id, params: info)
99
else
100
@contexts[context_id]&.add_target(params: info)
0 commit comments