(ms)
| 701 | */ |
| 702 | async function requestViaSendBeacon(url) { |
| 703 | function wait(ms) { |
| 704 | return new Promise(resolve => step_timeout(resolve, ms)); |
| 705 | } |
| 706 | if (!navigator.sendBeacon(url)) { |
| 707 | // If mixed-content check fails, it should return false. |
| 708 | throw new Error('sendBeacon() fails.'); |
no test coverage detected