Skip to content
docs

ApprovalWindow

Defined in: approvals.ts:93

The window side: open for one request, close when it is answered. memoryApprovalWindow() for tests.

close(requestId): Promise<void>

Defined in: approvals.ts:95

string

Promise<void>


onClosed(handler): void

Defined in: approvals.ts:97

The user closed the window themself (chrome.windows.onRemoved): the queue declines the request.

(requestId) => void

void


open(request): Promise<void>

Defined in: approvals.ts:94

ApprovalRequest

Promise<void>