Skip to content

Commit 4011936

Browse files
Update src/McpContext.ts
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
1 parent 9ea96e7 commit 4011936

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/McpContext.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ export class McpContext implements Context {
325325
*/
326326
async createPagesSnapshot(): Promise<Page[]> {
327327
this.#pages = (await this.browser.pages()).filter(page => {
328-
if (this.#options.devtools) {
329-
return true;
328+
if (page.url().startsWith('devtools://')) {
329+
return this.#options.devtools;
330330
}
331-
return !page.url().startsWith('devtools://');
331+
return true;
332332
});
333333
return this.#pages;
334334
}

0 commit comments

Comments
 (0)