Unverified Commit 92d5fc49 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fall back to fallbackSend when send is false (#27113)

Send can result in `false` when it did not send the result so we have to fall back in that case. Shared by @timer after my PR was landed.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes
parent 08f06e7a
...@@ -63,7 +63,7 @@ function onReport(metric: Metric): void { ...@@ -63,7 +63,7 @@ function onReport(metric: Metric): void {
try { try {
// If send is undefined it'll throw as well. This reduces output code size. // If send is undefined it'll throw as well. This reduces output code size.
send!(vitalsUrl, blob) send!(vitalsUrl, blob) || fallbackSend()
} catch (err) { } catch (err) {
fallbackSend() fallbackSend()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment