Function
selectedReply
(result: RequestPermissionResponse)
Source from the content-addressed store, hash-verified
| 217 | } |
| 218 | |
| 219 | function selectedReply(result: RequestPermissionResponse): Reply { |
| 220 | if (result.outcome.outcome !== "selected") return "reject" |
| 221 | if (result.outcome.optionId === "once" || result.outcome.optionId === "always") return result.outcome.optionId |
| 222 | return "reject" |
| 223 | } |
| 224 | |
| 225 | function stringValue(value: unknown) { |
| 226 | return typeof value === "string" ? value : undefined |
Tested by
no test coverage detected