Skip to content

Commit 7e9dbc1

Browse files
committed
Add comment explaining unhandledPromptBehavior: ignore
1 parent 54e8b69 commit 7e9dbc1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ server.tool(
159159

160160
// Enable BiDi websocket if the modules are available
161161
if (LogInspector && Network) {
162+
// 'ignore' prevents BiDi from auto-dismissing alert/confirm/prompt dialogs,
163+
// allowing accept_alert, dismiss_alert, and get_alert_text to work as expected.
162164
builder = builder.withCapabilities({ 'webSocketUrl': true, 'unhandledPromptBehavior': 'ignore' });
163165
}
164166

0 commit comments

Comments
 (0)