|
|
@ -2718,19 +2718,19 @@ function setPendingTokens (pendingTokens) { |
|
|
|
// Permissions
|
|
|
|
// Permissions
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Approves the permission requests with the given IDs. |
|
|
|
* Approves the permissions request. |
|
|
|
* @param {string} requestId - The id of the permissions request. |
|
|
|
* @param {Object} request - The permissions request to approve |
|
|
|
* @param {string[]} accounts - The accounts to expose, if any. |
|
|
|
* @param {string[]} accounts - The accounts to expose, if any. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function approvePermissionsRequest (requestId, accounts) { |
|
|
|
function approvePermissionsRequest (request, accounts) { |
|
|
|
return () => { |
|
|
|
return () => { |
|
|
|
background.approvePermissionsRequest(requestId, accounts) |
|
|
|
background.approvePermissionsRequest(request, accounts) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Rejects the permission requests with the given IDs. |
|
|
|
* Rejects the permissions request with the given ID. |
|
|
|
* @param {Array} requestId |
|
|
|
* @param {string} requestId - The id of the request to be rejected |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function rejectPermissionsRequest (requestId) { |
|
|
|
function rejectPermissionsRequest (requestId) { |
|
|
|
return () => { |
|
|
|
return () => { |
|
|
|