(namespace, timeout = 15000)
| 74 | } |
| 75 | |
| 76 | export async function getPageUnloadRetriesForNamespace (namespace, timeout = 15000) { |
| 77 | const namespaceRetries = getNamespaceData(namespace) || [] |
| 78 | |
| 79 | deleteNamespaceData(namespace) |
| 80 | return namespaceRetries |
| 81 | .filter(retry => new Date().getTime() - retry.at < timeout) |
| 82 | } |
nothing calls this directly
no test coverage detected