chore: lint

This commit is contained in:
amhsirak
2025-01-06 19:34:13 +05:30
parent d25ffe32b8
commit 9cfffd801d

View File

@@ -43,7 +43,6 @@ const SCREENCAST_CONFIG: {
maxQueueSize: 2 maxQueueSize: 2
}; };
/** /**
* This class represents a remote browser instance. * This class represents a remote browser instance.
* It is used to allow a variety of interaction with the Playwright's browser instance. * It is used to allow a variety of interaction with the Playwright's browser instance.
@@ -333,11 +332,11 @@ export class RemoteBrowser {
this.client = await this.currentPage.context().newCDPSession(this.currentPage); this.client = await this.currentPage.context().newCDPSession(this.currentPage);
await blocker.disableBlockingInPage(this.currentPage); await blocker.disableBlockingInPage(this.currentPage);
console.log('Adblocker initialized'); console.log('Adblocker initialized');
} catch (error: any) { } catch (error: any) {
console.warn('Failed to initialize adblocker, continuing without it:', error.message); console.warn('Failed to initialize adblocker, continuing without it:', error.message);
// Still need to set up the CDP session even if blocker fails // Still need to set up the CDP session even if blocker fails
this.client = await this.currentPage.context().newCDPSession(this.currentPage); this.client = await this.currentPage.context().newCDPSession(this.currentPage);
} }
}; };
/** /**