Appearance
Elect one tab to own background work.
lifecycle.on("tab:primary", () => becomeLeader()); lifecycle.on("tab:secondary", () => resignLeadership());
Open multiple tabs and verify promotion when the leader closes.
Cross Tab Playground
Advanced Tutorial