feat: add abort state getter
This commit is contained in:
@@ -123,6 +123,13 @@ export default class Interpreter extends EventEmitter {
|
|||||||
this.isAborted = true;
|
this.isAborted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the current abort status
|
||||||
|
*/
|
||||||
|
public getIsAborted(): boolean {
|
||||||
|
return this.isAborted;
|
||||||
|
}
|
||||||
|
|
||||||
private async applyAdBlocker(page: Page): Promise<void> {
|
private async applyAdBlocker(page: Page): Promise<void> {
|
||||||
if (this.blocker) {
|
if (this.blocker) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user