probe-web / @probe-web/artifacts / restoreHandles
Function: restoreHandles()
ts
function restoreHandles(
store,
entries,
opts?
): Promise<RestoreResult>;Defined in: index.ts:354
Restore remembered handles in order. Without request nothing prompts, so it is safe on page load; with it, each missing permission is requested (call from a click handler). A typical page calls it once on load, then again with request: true from a button when RestoreResult.waiting is not empty.
Parameters
| Parameter | Type |
|---|---|
store | HandleStore |
entries | RestoreEntry<any>[] |
opts | { request?: boolean; } |
opts.request? | boolean |
Returns
Promise<RestoreResult>