feat: add abort state getter

This commit is contained in:
Rohit Rajan
2025-09-28 23:00:24 +05:30
parent e75a10dcfe
commit f77f42a929

View File

@@ -123,6 +123,13 @@ export default class Interpreter extends EventEmitter {
this.isAborted = true;
}
/**
* Returns the current abort status
*/
public getIsAborted(): boolean {
return this.isAborted;
}
private async applyAdBlocker(page: Page): Promise<void> {
if (this.blocker) {
try {