Skip to content

Commit

Permalink
Update lib/debug/server_cdp.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Stan Lo <stan001212@gmail.com>
  • Loading branch information
ono-max and st0012 authored Jan 8, 2024
1 parent 619c7a9 commit 94dff6e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/debug/server_cdp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,8 @@ def process
id: SecureRandom.hex
when 'Runtime.terminateExecution'
send_response req
if SESSION.in_subsession?
@q_msg << 'kill!'
else
@q_msg << 'kill!'
pause
end
@q_msg << 'kill!'
pause unless SESSION.in_subsession?
when 'Page.startScreencast', 'Emulation.setTouchEmulationEnabled', 'Emulation.setEmitTouchEventsForMouse',
'Runtime.compileScript', 'Page.getResourceContent', 'Overlay.setPausedInDebuggerMessage',
'Runtime.releaseObjectGroup', 'Runtime.discardConsoleEntries', 'Log.clear', 'Runtime.runIfWaitingForDebugger'
Expand Down

0 comments on commit 94dff6e

Please sign in to comment.