Function
handlePermissionResponse
(requestId: string, behavior: 'allow' | 'deny', _updatedInput?: PermissionInput, message?: string)
Source from the content-addressed store, hash-verified
| 318 | }, []); |
| 319 | |
| 320 | const handlePermissionResponse = async (requestId: string, behavior: 'allow' | 'deny', _updatedInput?: PermissionInput, message?: string) => { |
| 321 | try { |
| 322 | await API.permissions.respond(requestId, { |
| 323 | allow: behavior === 'allow', |
| 324 | reason: message |
| 325 | }); |
| 326 | setCurrentPermissionRequest(null); |
| 327 | } catch (error) { |
| 328 | console.error('Failed to respond to permission request:', error); |
| 329 | } |
| 330 | }; |
| 331 | |
| 332 | return ( |
| 333 | <ContextMenuProvider> |
Callers
nothing calls this directly
Tested by
no test coverage detected