Challenge 1
The decision tree's first branch condition.
export function send(payload) {
const dying = document.visibilityState === '';
return dying ? viaBeacon(payload) : viaKeepalive(payload);
}
Press Ctrl⌘Enter to check your answer