Skip to content

Commit 880325f

Browse files
committed
fix: make stopRecordingTraffic asynchronous and add request interception handling for pupperteer
1 parent 9c499a4 commit 880325f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helper/Puppeteer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,8 @@ class Puppeteer extends Helper {
25912591
*
25922592
* {{> stopRecordingTraffic }}
25932593
*/
2594-
stopRecordingTraffic() {
2594+
async stopRecordingTraffic() {
2595+
await this.page.setRequestInterception(false)
25952596
stopRecordingTraffic.call(this)
25962597
}
25972598

0 commit comments

Comments
 (0)