chore: don't run debugger on pause() (#11948)

This commit is contained in:
Pavel Feldman 2022-02-08 14:24:13 -08:00 committed by GitHub
parent 9e08b97b69
commit 9ce8572c78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -644,9 +644,7 @@ export class Page extends ChannelOwner<channels.PageChannel> implements api.Page
}
async pause() {
if (!!require('inspector').url())
debugger; // eslint-disable-line no-debugger
else
if (!require('inspector').url())
await this.context()._channel.pause();
}