Source code
Revision control
Copy as Markdown
Other Tools
const channel = new BroadcastChannel("anne was here");
channel.onmessageerror = ({ data }) => {
if(data === null) {
channel.postMessage("sw-success");
}
}
channel.postMessage("hi");